Permalink
Browse files

Give raw downloads a better filename

  • Loading branch information...
1 parent 3293030 commit 57c1d00f23f55a36f9369feb58ceb17e279195f4 @ConradIrwin ConradIrwin committed Jul 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/perftools_profiler/profiler_middleware.rb
@@ -59,7 +59,7 @@ def headers(printer, body)
'Content-Type' => PRINTER_CONTENT_TYPE[printer],
'Content-Length' => content_length(body)
}
- if printer==:pdf
+ if printer==:pdf || printer ==:raw
filetype = printer
filename='profile_data'
headers['Content-Disposition'] = %(attachment; filename="#{filename}.#{filetype}")

0 comments on commit 57c1d00

Please sign in to comment.