diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-01-24 06:01:47 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-01-24 06:01:47 +0000 |
commit | 4e2936dc1b27ef2bc4f509570f561f7a72e402e5 (patch) | |
tree | 385c0253e8854fe25b709ccd9754ea0573231d4e /lib/cgi.rb | |
parent | 3acbddad211faf952283b9f984e16eb800b2bbf1 (diff) | |
download | ruby-4e2936dc1b27ef2bc4f509570f561f7a72e402e5.tar.gz ruby-4e2936dc1b27ef2bc4f509570f561f7a72e402e5.tar.xz ruby-4e2936dc1b27ef2bc4f509570f561f7a72e402e5.zip |
* lib/cgi.rb: fix the problem that when running under mod_ruby
header() outputs only one Set-Cookie line.
Approved by: wakou, matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi.rb')
-rw-r--r-- | lib/cgi.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb index 7d27cecd6..7468a2e12 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 '' |