Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't set content-disposition on pdfs. (browsers can cope...)

  • Loading branch information...
commit 7f37885321953ef6c132f09eb2800802114e9799 1 parent 89ac2bd
@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 || printer ==:raw
+ if 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.