This commit is contained in:
Espen Antonsen 2009-06-15 23:26:54 +02:00
parent f9baad9a3c
commit da3e38a8bd

View file

@ -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