summaryrefslogtreecommitdiff
path: root/lib/cgi.rb
diff options
context:
space:
mode:
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