From d550569264a16e96121d05423f7516ce726d96c9 Mon Sep 17 00:00:00 2001 From: wakou Date: Sun, 18 Nov 2001 20:08:14 +0000 Subject: [PATCH] * lib/cgi.rb (header): support for Apache. thanks to Shugo Maeda . git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/cgi.rb | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index f5467240f4..cc6a39a725 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Nov 19 04:58:42 2001 Wakou Aoyama + + * lib/cgi.rb (header): support for Apache. thanks to + Shugo Maeda . + Sun Nov 18 19:37:55 2001 Nobuyoshi Nakada * parse.y: needless conditionals. 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