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/trunk@1840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5ca24aa3e8
commit
d550569264
2 changed files with 9 additions and 0 deletions
|
@ -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>
|
Sun Nov 18 19:37:55 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||||
|
|
||||||
* parse.y: needless conditionals.
|
* parse.y: needless conditionals.
|
||||||
|
|
|
@ -499,10 +499,14 @@ status:
|
||||||
table.add($1, $2)
|
table.add($1, $2)
|
||||||
when /^status$/ni
|
when /^status$/ni
|
||||||
Apache::request.status_line = value
|
Apache::request.status_line = value
|
||||||
|
Apache::request.status = value.to_i
|
||||||
when /^content-type$/ni
|
when /^content-type$/ni
|
||||||
Apache::request.content_type = value
|
Apache::request.content_type = value
|
||||||
when /^content-encoding$/ni
|
when /^content-encoding$/ni
|
||||||
Apache::request.content_encoding = value
|
Apache::request.content_encoding = value
|
||||||
|
when /^location$/ni
|
||||||
|
Apache::request.status = 302
|
||||||
|
Apache::request.headers_out[name] = value
|
||||||
else
|
else
|
||||||
Apache::request.headers_out[name] = value
|
Apache::request.headers_out[name] = value
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue