summaryrefslogtreecommitdiff
path: root/lib/cgi.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cgi.rb')
-rw-r--r--lib/cgi.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb
index 7d27cec..7468a2e 100644
--- a/lib/cgi.rb
+++ b/lib/cgi.rb
@@ -496,8 +496,13 @@ status:
}
if defined?(MOD_RUBY)
+ table = Apache::request.headers_out
buf.scan(/([^:]+): (.+)#{EOL}/n){
- Apache::request[$1] = $2
+ if $1 == 'Set-Cookie'
+ table.add($1, $2)
+ else
+ table.set($1, $2)
+ end
}
Apache::request.send_http_header
''