mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/webrick/httputils.rb (parse_form_data): should return an
empty Hash if the body is empty. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b3b5b5e6b6
commit
f75aff0139
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Dec 19 03:44:27 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||||
|
|
||||||
|
* lib/webrick/httputils.rb (parse_form_data): should return an
|
||||||
|
empty Hash if the body is empty.
|
||||||
|
|
||||||
Thu Dec 18 21:47:35 2003 NAKAMURA Usaku <usa@ruby-lang.org>
|
Thu Dec 18 21:47:35 2003 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* lib/mkmf.rb (create_makefile): should remove deffile if it's
|
* lib/mkmf.rb (create_makefile): should remove deffile if it's
|
||||||
|
|
|
@ -296,6 +296,7 @@ module WEBrick
|
||||||
def parse_form_data(io, boundary)
|
def parse_form_data(io, boundary)
|
||||||
boundary_regexp = /\A--#{boundary}(--)?#{CRLF}\z/
|
boundary_regexp = /\A--#{boundary}(--)?#{CRLF}\z/
|
||||||
form_data = Hash.new
|
form_data = Hash.new
|
||||||
|
return form_data unless io
|
||||||
data = nil
|
data = nil
|
||||||
io.each{|line|
|
io.each{|line|
|
||||||
if boundary_regexp =~ line
|
if boundary_regexp =~ line
|
||||||
|
|
Loading…
Reference in a new issue