* 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:
wakou 2001-11-18 20:08:14 +00:00
parent 5ca24aa3e8
commit d550569264
2 changed files with 9 additions and 0 deletions

View File

@ -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>
* parse.y: needless conditionals.

View File

@ -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