wininet: Use parsed status_code to test for CONTINUE HTTP response.

This commit is contained in:
Jacek Caban 2013-03-15 11:46:22 +01:00 committed by Alexandre Julliard
parent 02f2ab9437
commit c6005aabcd
1 changed files with 1 additions and 2 deletions

View File

@ -5680,7 +5680,6 @@ static INT HTTP_GetResponseHeaders(http_request_t *request, BOOL clear)
NETCON_set_timeout( request->netconn, FALSE, request->receive_timeout );
do {
static const WCHAR szHundred[] = {'1','0','0',0};
/*
* We should first receive 'HTTP/1.x nnn OK' where nnn is the status code.
*/
@ -5716,7 +5715,7 @@ static INT HTTP_GetResponseHeaders(http_request_t *request, BOOL clear)
TRACE("version [%s] status code [%s] status text [%s]\n",
debugstr_w(buffer), debugstr_w(status_code), debugstr_w(status_text) );
codeHundred = (!strcmpW(status_code, szHundred));
codeHundred = request->status_code == HTTP_STATUS_CONTINUE;
}
else if (!codeHundred)
{