summaryrefslogtreecommitdiff
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
commit8e1d1358b689a13b4706754a2ab3fbcd7ef1d683 (patch)
treebd74c7c92b789013ddfe92f2a978758d5a6eae50 /lib
parent450f5d28a92fac61604d223860da2a002fa2d67a (diff)
downloadruby-8e1d1358b689a13b4706754a2ab3fbcd7ef1d683.tar.gz
* 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: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@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 2bed0bdec4..eb476923e9 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