summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/cgi.rb4
2 files changed, 9 insertions, 0 deletions
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 <wakou@fsinet.or.jp>
+
+ * lib/cgi.rb (header): support for Apache. thanks to
+ Shugo Maeda <shugo@ruby-lang.org>.
+
Sun Nov 18 19:37:55 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
* 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