lib/pdfkit/middleware.rb in pdfkit-0.8.4.1 vs lib/pdfkit/middleware.rb in pdfkit-0.8.4.2
- old
+ new
@@ -45,9 +45,10 @@
headers.delete('Cache-Control')
end
headers['Content-Length'] = (body.respond_to?(:bytesize) ? body.bytesize : body.size).to_s
headers['Content-Type'] = 'application/pdf'
+ headers['Content-Disposition'] = @conditions[:disposition] || 'inline'
end
[status, headers, response]
end