winhttp: Fill the read buffer first in drain_content.
This commit is contained in:
parent
1eb86e1fca
commit
4ac817b6c0
|
@ -2148,6 +2148,7 @@ static void drain_content( request_t *request )
|
||||||
DWORD bytes_read;
|
DWORD bytes_read;
|
||||||
char buffer[2048];
|
char buffer[2048];
|
||||||
|
|
||||||
|
refill_buffer( request, FALSE );
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
if (!read_data( request, buffer, sizeof(buffer), &bytes_read, FALSE ) || !bytes_read) return;
|
if (!read_data( request, buffer, sizeof(buffer), &bytes_read, FALSE ) || !bytes_read) return;
|
||||||
|
|
Loading…
Reference in New Issue