mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
e111bdb9d3
commit
0dc1a293fd
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Jan 24 14:58:08 2001 Akinori MUSHA <knu@ruby-lang.org>
|
||||
|
||||
* lib/cgi.rb: fix the problem that when running under mod_ruby
|
||||
header() outputs only one Set-Cookie line.
|
||||
|
||||
Tue Jan 23 18:51:57 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* gc.c (rb_gc_call_finalizer_at_exit): should finalize objects in
|
||||
|
|
|
@ -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
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue