Skip to content

Commit 7055fca

Browse files
nirvdrumdefunkt
authored andcommitted
Use text/html since it is HTML and this helps with mod_proxy_html.
1 parent a488d0b commit 7055fca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/resque/server.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def show(page, layout = true)
147147

148148
%w( overview workers ).each do |page|
149149
get "/#{page}.poll" do
150-
content_type "text/plain"
150+
content_type "text/html"
151151
@polling = true
152152
show(page.to_sym, false).gsub(/\s{1,}/, ' ')
153153
end
@@ -201,7 +201,7 @@ def show(page, layout = true)
201201
stats << "queues.#{queue}=#{Resque.size(queue)}"
202202
end
203203

204-
content_type 'text/plain'
204+
content_type 'text/html'
205205
stats.join "\n"
206206
end
207207

0 commit comments

Comments
 (0)