Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
rewind file part after dumping it [caused problem when using digest a…
…uth]

Signed-off-by: Hiroshi Nakamura <nahi@ruby-lang.org>
  • Loading branch information
chetan authored and Hiroshi Nakamura committed Dec 12, 2010
1 parent 3ff675c commit 2cdbb6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/httpclient/http.rb
Expand Up @@ -444,6 +444,7 @@ def dump(header = '', dev = '')
while !part.read(@chunk_size, buf).nil?
dev << buf
end
part.rewind
else
dev << part
end
Expand Down

0 comments on commit 2cdbb6b

Please sign in to comment.