summaryrefslogtreecommitdiff
path: root/lib/webrick/httpservlet
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-18 15:00:23 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-18 15:00:23 +0000
commit817afcc8ab31cd128686304d2676e4c2b8d9c147 (patch)
tree20dd23cdd18b64631f1fb70c0af5476fe91edfed /lib/webrick/httpservlet
parent48408c2a0c2f719044e20c414b99a1b0f4946270 (diff)
* test warning cleanups.
* lib/webrick/https.rb, lib/soap/attachment.rb, test/xsd/test_xsd.rb: uninitialized instance variables. * lib/xsd/datatypes.rb: use Date#new! instead of Date#new0 according to deprecation message. * lib/webrick/httpservlet/cgihandler.rb, lib/xsd/codegen/gensupport.rb, lib/soap/property.rb, lib/soap/mimemessage.rb, test/webrick/test_cgi.rb: use String#each_line and String#lines.to_a instead of String#each according to deprecation message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/httpservlet')
-rw-r--r--lib/webrick/httpservlet/cgihandler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/httpservlet/cgihandler.rb b/lib/webrick/httpservlet/cgihandler.rb
index d5895e5285..584208cef3 100644
--- a/lib/webrick/httpservlet/cgihandler.rb
+++ b/lib/webrick/httpservlet/cgihandler.rb
@@ -80,7 +80,7 @@ module WEBrick
"Premature end of script headers: #{@script_filename}" if body.nil?
begin
- header = HTTPUtils::parse_header(raw_header)
+ header = HTTPUtils::parse_header(raw_header.lines.to_a)
if /^(\d+)/ =~ header['status'][0]
res.status = $1.to_i
header.delete('status')