diff options
author | Loïc Hoguin <[email protected]> | 2014-04-30 13:02:33 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2014-04-30 13:02:33 +0200 |
commit | 4ec78b0b4d6ee82854de3cfdfe5ec1a928823659 (patch) | |
tree | e6762d23ac04fbbe5b63f2b28cad4c81f37a21c0 | |
parent | 087287fb57acd4031d1427a76f983d79a7ff2f1c (diff) | |
download | gun-4ec78b0b4d6ee82854de3cfdfe5ec1a928823659.tar.gz gun-4ec78b0b4d6ee82854de3cfdfe5ec1a928823659.tar.bz2 gun-4ec78b0b4d6ee82854de3cfdfe5ec1a928823659.zip |
Fix chunked transfer-encoding for HTTP/1.1
-rw-r--r-- | src/gun_http.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gun_http.erl b/src/gun_http.erl index 76475d2..e743434 100644 --- a/src/gun_http.erl +++ b/src/gun_http.erl @@ -230,7 +230,7 @@ data(State=#http_state{socket=Socket, transport=Transport, version=Version, Transport:send(Socket, <<"0\r\n\r\n">>); _ -> Transport:send(Socket, [ - integer_to_list(DataSize), <<"\r\n">>, + integer_to_list(DataSize, 16), <<"\r\n">>, Data, <<"\r\n0\r\n\r\n">> ]) end, |