summaryrefslogtreecommitdiff
path: root/lib/cgi-lib.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cgi-lib.rb')
-rw-r--r--lib/cgi-lib.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cgi-lib.rb b/lib/cgi-lib.rb
index ffe3fcf..ab4eef1 100644
--- a/lib/cgi-lib.rb
+++ b/lib/cgi-lib.rb
@@ -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