mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
wininet: Use parsed status_code to test for CONTINUE HTTP response.
This commit is contained in:
parent
02f2ab9437
commit
c6005aabcd
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user