From 8cfe0591bd139d14ddd9408dfc15e5628c4b9247 Mon Sep 17 00:00:00 2001 From: shugo Date: Wed, 21 Nov 2001 03:30:22 +0000 Subject: * lib/cgi.rb: CGI#header: do not set Apache.request.status for Location: if Apache.request.status is already set. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/cgi.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/cgi.rb') diff --git a/lib/cgi.rb b/lib/cgi.rb index c86ac3230..84d545f46 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -505,7 +505,9 @@ status: when /^content-encoding$/ni Apache::request.content_encoding = value when /^location$/ni - Apache::request.status = 302 + if Apache::request.status == 200 + Apache::request.status = 302 + end Apache::request.headers_out[name] = value else Apache::request.headers_out[name] = value -- cgit