Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Give raw downloads a better filename

  • Loading branch information...
commit 89ac2bd58a10c0f023d1cb9a7dd9ed7aabf341f4 1 parent 95db82e
@ConradIrwin ConradIrwin authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rack/perftools_profiler/profiler_middleware.rb
View
2  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}")
Please sign in to comment.
Something went wrong with that request. Please try again.