diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 3a42d677357..6a9df2c0fdd 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -3832,18 +3832,13 @@ static INT HTTP_GetResponseHeaders(LPWININETHTTPREQW lpwhr, BOOL clear) goto lend; do { - /* - * HACK peek at the buffer - */ - buflen = MAX_REPLY_LEN; - NETCON_recv(&lpwhr->netConnection, buffer, buflen, MSG_PEEK, &rc); - /* * We should first receive 'HTTP/1.x nnn OK' where nnn is the status code. */ - memset(buffer, 0, MAX_REPLY_LEN); + buflen = MAX_REPLY_LEN; if (!NETCON_getNextLine(&lpwhr->netConnection, bufferA, &buflen)) goto lend; + rc += buflen; MultiByteToWideChar( CP_ACP, 0, bufferA, buflen, buffer, MAX_REPLY_LEN ); /* split the version from the status code */