diff --git a/app/middleware/flash_session_cookie_middleware.rb b/app/middleware/flash_session_cookie_middleware.rb index 5f12388..dd86e09 100644 --- a/app/middleware/flash_session_cookie_middleware.rb +++ b/app/middleware/flash_session_cookie_middleware.rb @@ -10,7 +10,6 @@ class FlashSessionCookieMiddleware if env['HTTP_USER_AGENT'] =~ /^(Adobe|Shockwave) Flash/ params = ::Rack::Utils.parse_query(env['QUERY_STRING']) env['HTTP_COOKIE'] = [ @session_key, params[@session_key] ].join('=').freeze unless params[@session_key].nil? - read_buffer.force_encoding("ascii-8bit") if RUBY_VERSION >= "1.9" end @app.call(env) end