mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Tue May 21 04:48:37 2002 Sean Chittenden <sean@chittenden.org>
* lib/cgi-lib.rb: Checking for constant MOD_RUBY instead of environment variable. Remove a mod_ruby warning and use Apache::request.headers_out[] instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dbdd56faf8
commit
221e3c4c07
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
Tue May 21 04:48:37 2002 Sean Chittenden <sean@chittenden.org>
|
||||
|
||||
* lib/cgi-lib.rb: Checking for constant MOD_RUBY instead of
|
||||
environment variable. Remove a mod_ruby warning and use
|
||||
Apache::request.headers_out[] instead.
|
||||
|
||||
Tue May 21 01:16:46 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* parse.y (bodystmt): ensure clause was excuted on else clause
|
||||
|
|
|
@ -216,10 +216,10 @@ class CGI < SimpleDelegator
|
|||
|
||||
# make HTTP header string
|
||||
def CGI::header(*options)
|
||||
if ENV['MOD_RUBY']
|
||||
if defined?(MOD_RUBY)
|
||||
options.each{|option|
|
||||
option.sub(/(.*?): (.*)/){
|
||||
Apache::request[$1] = $2
|
||||
Apache::request.headers_out[$1] = $2
|
||||
}
|
||||
}
|
||||
Apache::request.send_http_header
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue