diff --git a/app/middleware/flash_session_cookie_middleware.rb b/app/middleware/flash_session_cookie_middleware.rb index a3c54a6..9ec58bb 100644 --- a/app/middleware/flash_session_cookie_middleware.rb +++ b/app/middleware/flash_session_cookie_middleware.rb @@ -10,12 +10,10 @@ class FlashSessionCookieMiddleware if env['HTTP_USER_AGENT'] =~ /^(Adobe|Shockwave) Flash/ req = Rack::Request.new(env) env['HTTP_COOKIE'] = [ @session_key, - req.params[@session_key] ] - .join('=').freeze unless req.params[@session_key].nil? - env['HTTP_ACCEPT'] = "#{req.params['_http_accept']}" - .freeze unless req.params['_http_accept'].nil? + req.params[@session_key] ].join('=').freeze unless req.params[@session_key].nil? + env['HTTP_ACCEPT'] = "#{req.params['_http_accept']}".freeze unless req.params['_http_accept'].nil? end @app.call(env) end -end \ No newline at end of file +end