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 | 0c21de7587fb1356d7a8147f2b9b428bdf28e717 (patch) | |
| tree | 3fdb58a5fe42fecf74ed323712a3a544855b6949 /lib | |
| parent | cae962dd4d35663a03597b8ce0655b9aec8f907e (diff) | |
| download | ruby-0c21de7587fb1356d7a8147f2b9b428bdf28e717.tar.gz ruby-0c21de7587fb1356d7a8147f2b9b428bdf28e717.tar.xz ruby-0c21de7587fb1356d7a8147f2b9b428bdf28e717.zip | |
* lib/cgi.rb (header): support for Apache. thanks to
Shugo Maeda <shugo@ruby-lang.org>.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -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 97bbc994f..c86ac3230 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 |
