Skip to content

Commit

Permalink
Remove extra call to File#rewind
Browse files Browse the repository at this point in the history
Based on similarity between Body#dump and Body#dump_chunked, I found
that File#rewind is wrongly called for MIME/multipart form upload.
  • Loading branch information
Hiroshi Nakamura committed May 30, 2011
1 parent 3df5871 commit 52fd834
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/httpclient/http.rb
Expand Up @@ -446,7 +446,6 @@ def dump(header = '', dev = '')
if Message.file?(part)
reset_pos(part)
dump_file(part, dev)
part.rewind
else
dev << part
end
Expand Down

0 comments on commit 52fd834

Please sign in to comment.