mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/cgi.rb (header): support for Apache. thanks to
Shugo Maeda <shugo@ruby-lang.org>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
30c363553c
commit
3cff13cb2c
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue