Commit daa0acdb authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wininet: Fix calculation of content length from chunk size.

parent 9db146f5
...@@ -2762,7 +2762,8 @@ static DWORD start_next_chunk(chunked_stream_t *stream, http_request_t *req) ...@@ -2762,7 +2762,8 @@ static DWORD start_next_chunk(chunked_stream_t *stream, http_request_t *req)
{ {
TRACE( "reading %u byte chunk\n", chunk_size ); TRACE( "reading %u byte chunk\n", chunk_size );
stream->chunk_size = chunk_size; stream->chunk_size = chunk_size;
req->contentLength += chunk_size; if (req->contentLength == ~0u) req->contentLength = chunk_size;
else req->contentLength += chunk_size;
return discard_chunked_eol(stream, req); return discard_chunked_eol(stream, req);
} }
remove_chunked_data(stream, 1); remove_chunked_data(stream, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment