mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
don't push CRLF into parser from chunks
This commit is contained in:
parent
1024b837e2
commit
cde760df9d
1 changed files with 2 additions and 1 deletions
|
@ -111,7 +111,8 @@ module Fog
|
|||
while true
|
||||
# 2 == "/r/n".length
|
||||
chunk_size = @connection.readline.chomp!.to_i(16) + 2
|
||||
body << @connection.read(chunk_size)
|
||||
chunk = @connection.read(chunk_size)
|
||||
body << chunk[0...-2]
|
||||
if chunk_size == 2
|
||||
break
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue