Commit cfdc5399 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Set content_length when we reach end of data in netconn_read.

parent 8e37ed55
......@@ -2346,6 +2346,8 @@ static DWORD netconn_read(data_stream_t *stream, http_request_t *req, BYTE *buf,
if(size && req->netconn) {
if(NETCON_recv(req->netconn, buf, size, read_mode == READMODE_SYNC ? MSG_WAITALL : 0, &len) != ERROR_SUCCESS)
len = 0;
if(!len)
netconn_stream->content_length = netconn_stream->content_read;
}
netconn_stream->content_read += *read = len;
......
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