From 52fd83412275538e7d449026072ff720fce2d655 Mon Sep 17 00:00:00 2001 From: Hiroshi Nakamura Date: Mon, 30 May 2011 17:27:47 +0900 Subject: [PATCH] Remove extra call to File#rewind Based on similarity between Body#dump and Body#dump_chunked, I found that File#rewind is wrongly called for MIME/multipart form upload. --- lib/httpclient/http.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/httpclient/http.rb b/lib/httpclient/http.rb index bee25b00..6cbee508 100644 --- a/lib/httpclient/http.rb +++ b/lib/httpclient/http.rb @@ -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