From 0dc1a293fdcda1558f42d207ef289fd8e7b9401d Mon Sep 17 00:00:00 2001 From: knu Date: Wed, 24 Jan 2001 06:01:47 +0000 Subject: * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@1149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/cgi.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/cgi.rb') diff --git a/lib/cgi.rb b/lib/cgi.rb index 7d27cecd67..7468a2e124 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 '' -- cgit v1.2.3