summaryrefslogtreecommitdiff
path: root/lib/cgi
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cgi')
-rw-r--r--lib/cgi/session.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/cgi/session.rb b/lib/cgi/session.rb
index cfefa8f0b0..5709178d0f 100644
--- a/lib/cgi/session.rb
+++ b/lib/cgi/session.rb
@@ -36,6 +36,7 @@ class CGI
end
unless id
id, = request[session_key]
+ id = id.read if id.respond_to?(:read)
unless id
id, = request.cookies[session_key]
end