lib/pdfkit/middleware.rb in pdfkit-0.8.4 vs lib/pdfkit/middleware.rb in pdfkit-0.8.4.1

- old
+ new

@@ -7,9 +7,13 @@ @render_pdf = false @caching = @conditions.delete(:caching) { false } end def call(env) + dup._call(env) + end + + def _call(env) @request = Rack::Request.new(env) @render_pdf = false set_request_to_render_as_pdf(env) if render_as_pdf? status, headers, response = @app.call(env)