Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'intouchmvc-master' into integrate-master

  • Loading branch information...
commit 80d2a7680d42dca3e1d335722fdbe1d59a33f8e5 2 parents bdb5076 + 584fa87
@troelskn troelskn authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/handsoap/http/drivers/abstract_driver.rb
View
6 lib/handsoap/http/drivers/abstract_driver.rb
@@ -64,8 +64,14 @@ def parse_multipart(boundary, content_io, content_length = nil)
boundary_size = boundary.size + "\r\n".size
content_length -= boundary_size
status = content_io.read(boundary_size)
+
if nil == status
raise EOFError, "no content body"
+ elsif "\r\n" + boundary == status
+ extra = content_io.read("\r\n".size)
+ unless extra == "\r\n"
+ raise EOFError, "parse error while reading boundary"
+ end
elsif boundary + "\r\n" != status
raise EOFError, "bad content body"
end
Please sign in to comment.
Something went wrong with that request. Please try again.