summaryrefslogtreecommitdiff
path: root/lib/cgi.rb
diff options
context:
space:
mode:
authorwakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-11-18 20:08:14 +0000
committerwakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-11-18 20:08:14 +0000
commitd550569264a16e96121d05423f7516ce726d96c9 (patch)
tree3fdb58a5fe42fecf74ed323712a3a544855b6949 /lib/cgi.rb
parent5ca24aa3e816759b838673743aed54b541c8d8e4 (diff)
* lib/cgi.rb (header): support for Apache. thanks to
Shugo Maeda <shugo@ruby-lang.org>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi.rb')
-rw-r--r--lib/cgi.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb
index 97bbc994f0..c86ac32306 100644
--- a/lib/cgi.rb
+++ b/lib/cgi.rb
@@ -499,10 +499,14 @@ status:
table.add($1, $2)
when /^status$/ni
Apache::request.status_line = value
+ Apache::request.status = value.to_i
when /^content-type$/ni
Apache::request.content_type = value
when /^content-encoding$/ni
Apache::request.content_encoding = value
+ when /^location$/ni
+ Apache::request.status = 302
+ Apache::request.headers_out[name] = value
else
Apache::request.headers_out[name] = value
end