Browse files

Fix call tree download filename

  • Loading branch information...
1 parent 1e55d85 commit 5aeb545d6a91ec37bff569ce41a578bfb94ed86f @jeremy jeremy committed Dec 17, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rack/profiler.rb
View
4 lib/rack/profiler.rb
@@ -75,8 +75,8 @@ def headers(printer, env, mode)
headers = { 'Content-Type' => PRINTER_CONTENT_TYPE[printer] || DEFAULT_CONTENT_TYPE }
if printer == RubyProf::CallTreePrinter
filename = ::File.basename(env['PATH_INFO'])
- headers['Content-Disposition'] = "attachment; " +
- "filename=\"#{filename}.#{mode}.tree\")"
+ headers['Content-Disposition'] =
+ %(attachment; filename="#{filename}.#{mode}.tree")
end
headers
end

0 comments on commit 5aeb545

Please sign in to comment.