lib/grover/middleware.rb in grover-0.4.2 vs lib/grover/middleware.rb in grover-0.4.3
- old
+ new
@@ -64,9 +64,10 @@
@render_pdf = true
env['PATH_INFO'] = path_without_extension
env['REQUEST_URI'] = path_without_extension
env['HTTP_ACCEPT'] = concat(env['HTTP_ACCEPT'], Rack::Mime.mime_type('.html'))
+ env['Rack-Middleware-Grover'] = 'true'
end
def concat(accepts, type)
(accepts || '').split(',').unshift(type).compact.join(',')
end