lib/spiderfw/http/http.rb in spiderfw-0.6.27 vs lib/spiderfw/http/http.rb in spiderfw-0.6.28

- old
+ new

@@ -251,10 +251,10 @@ boundary_size = boundary.size + EOL.size bufsize = 16384 content_length -= boundary_size status = input.read(boundary_size) raise ArgumentError, "bad content body:\n'#{status}' should == '#{boundary + EOL}'" unless status == boundary + EOL - rx = /(?:#{EOL})?#{Regexp.quote(boundary,'n')}(#{EOL}|--)/ + rx = /(?:#{EOL})?#{Regexp.quote(boundary)}(#{EOL}|--)/ files = [] loop { head = nil body = '' filename = content_type = name = nil \ No newline at end of file