Skip to content

Commit

Permalink
Use text/html since it is HTML and this helps with mod_proxy_html.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum authored and defunkt committed Oct 24, 2010
1 parent a488d0b commit 7055fca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resque/server.rb
Expand Up @@ -147,7 +147,7 @@ def show(page, layout = true)

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

content_type 'text/plain'
content_type 'text/html'
stats.join "\n"
end

Expand Down

0 comments on commit 7055fca

Please sign in to comment.