summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorwakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-07-05 05:04:25 +0000
committerwakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-07-05 05:04:25 +0000
commit58f9cbd06547e4205cccffc15177683c554398ca (patch)
tree277878a42ee9e91d9bd90f93e33c5de1bc05bf5c /lib
parent38d19f9b9715d4f921102ea5acdc7daca93ff0d7 (diff)
downloadruby-58f9cbd06547e4205cccffc15177683c554398ca.tar.gz
ruby-58f9cbd06547e4205cccffc15177683c554398ca.tar.xz
ruby-58f9cbd06547e4205cccffc15177683c554398ca.zip
* lib/cgi.rb (CGI#initialize): improvement for mod_ruby.
thanks to Sean Chittenden <sean@ruby-lang.org>, Shugo Maeda <shugo@modruby.net> git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/cgi.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb
index 2bed0bdec..eb476923e 100644
--- a/lib/cgi.rb
+++ b/lib/cgi.rb
@@ -1897,7 +1897,10 @@ The hash keys are case sensitive. Ask the samples.
def initialize(type = "query")
- Apache.request.setup_cgi_env if defined?(MOD_RUBY)
+ if defined?(MOD_RUBY) && !ENV.key?("GATEWAY_INTERFACE")
+ Apache.request.setup_cgi_env
+ end
+
extend QueryExtension
if "POST" != env_table['REQUEST_METHOD']
initialize_query() # set @params, @cookies