Resove some syntax error with ruby 1.8
This commit is contained in:
parent
7d9813caf3
commit
f5ba33ce67
|
@ -10,12 +10,10 @@ class FlashSessionCookieMiddleware
|
||||||
if env['HTTP_USER_AGENT'] =~ /^(Adobe|Shockwave) Flash/
|
if env['HTTP_USER_AGENT'] =~ /^(Adobe|Shockwave) Flash/
|
||||||
req = Rack::Request.new(env)
|
req = Rack::Request.new(env)
|
||||||
env['HTTP_COOKIE'] = [ @session_key,
|
env['HTTP_COOKIE'] = [ @session_key,
|
||||||
req.params[@session_key] ]
|
req.params[@session_key] ].join('=').freeze unless req.params[@session_key].nil?
|
||||||
.join('=').freeze unless req.params[@session_key].nil?
|
env['HTTP_ACCEPT'] = "#{req.params['_http_accept']}".freeze unless req.params['_http_accept'].nil?
|
||||||
env['HTTP_ACCEPT'] = "#{req.params['_http_accept']}"
|
|
||||||
.freeze unless req.params['_http_accept'].nil?
|
|
||||||
end
|
end
|
||||||
|
|
||||||
@app.call(env)
|
@app.call(env)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue