diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-17 16:57:44 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-17 16:57:44 +0000 |
commit | e9d7c50ab91e70493eeaf04bc64b85a663b5bc08 (patch) | |
tree | 2b8d31e212094ea1be42850c27704cc8deeb2ac4 | |
parent | 33a5b3bb84216e31d93a293f9430aa6a13f60178 (diff) | |
download | ruby-e9d7c50ab91e70493eeaf04bc64b85a663b5bc08.tar.gz ruby-e9d7c50ab91e70493eeaf04bc64b85a663b5bc08.tar.xz ruby-e9d7c50ab91e70493eeaf04bc64b85a663b5bc08.zip |
* lib/webrick/httprequest.rb (WEBrick::HTTPRequest#initialize):
initial value of accpet-* should be array.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/webrick/httprequest.rb | 6 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Mon Oct 18 01:56:03 2004 GOTOU Yuuzou <gotoyuzo@notwork.org> + + * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#initialize): + initial value of accpet-* should be array. + Sun Oct 17 23:03:48 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> * ext/tk/lib/tk/timer.rb: TkTimer#start and restart accept a block diff --git a/lib/webrick/httprequest.rb b/lib/webrick/httprequest.rb index 576a75086..f87883c31 100644 --- a/lib/webrick/httprequest.rb +++ b/lib/webrick/httprequest.rb @@ -58,8 +58,10 @@ module WEBrick @raw_header = Array.new @header = nil @cookies = [] - @accept = @accept_charset = - @accept_encoding = @accept_language = nil + @accept = [] + @accept_charset = [] + @accept_encoding = [] + @accept_language = [] @body = "" @addr = @peeraddr = nil |