зеркало из https://github.com/github/ruby.git
* lib/cgi.rb: CGI#header: do not set Apache.request.status for
Location: if Apache.request.status is already set. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
505e295fd6
Коммит
e15f65b004
|
@ -1,3 +1,8 @@
|
|||
Wed Nov 21 12:22:52 2001 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* lib/cgi.rb: CGI#header: do not set Apache.request.status for
|
||||
Location: if Apache.request.status is already set.
|
||||
|
||||
Tue Nov 20 01:07:13 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* parse.y (str_extend): should not terminate string interpolation
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче