Merge pull request #280 from xiaohui-zhangxh/master

compact with rack 2.0.8+
This commit is contained in:
John McAliley 2020-04-18 02:28:05 -04:00 committed by GitHub
commit 325e0830b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -138,7 +138,10 @@ module ImpressionistController
# str = request.session_options[:id]
# logger.debug "Encoding: #{str.encoding.inspect}"
# # request.session_options[:id].encode("ISO-8859-1")
request.session_options[:id]
id = request.session_options[:id]
# rack 2.0.8 releases new version of session id, id.to_s will raise error!
id = id.cookie_value if Rack::Session::SessionId.const_defined?(:ID_VERSION) && Rack::Session::SessionId::ID_VERSION == 2
id
end
def params_hash