Skip to content

Commit

Permalink
Set response.location to request.path; setting a header to nil breaks…
Browse files Browse the repository at this point in the history
… compatibility with rack's mongrel handler
  • Loading branch information
Mike Ferrier committed May 15, 2009
1 parent 2f1cbc7 commit 5312d3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/action_profiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ def action_profiler(&block)
RubyProf::CallTreePrinter.new(result).print(output, :min_percent => min_percent)
response.body.replace(output.string)

debugger

response.status = 200
response.location = nil
response.location = request.path

response.headers['Content-Length'] = response.body.size
response.headers['Content-Type'] = 'application/octet-stream'
Expand Down

0 comments on commit 5312d3f

Please sign in to comment.