Permalink
Browse files

Give raw downloads a better filename

  • Loading branch information...
1 parent 95db82e commit 89ac2bd58a10c0f023d1cb9a7dd9ed7aabf341f4 @ConradIrwin ConradIrwin committed with Jul 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/perftools_profiler/profiler_middleware.rb
@@ -61,7 +61,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 89ac2bd

Please sign in to comment.