diff options
author | wakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-11-18 20:08:14 +0000 |
---|---|---|
committer | wakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-11-18 20:08:14 +0000 |
commit | d550569264a16e96121d05423f7516ce726d96c9 (patch) | |
tree | 3fdb58a5fe42fecf74ed323712a3a544855b6949 /lib/cgi.rb | |
parent | 5ca24aa3e816759b838673743aed54b541c8d8e4 (diff) |
* lib/cgi.rb (header): support for Apache. thanks to
Shugo Maeda <[email protected]>.
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.rb | 4 |
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 |