Commit 58e7d39c authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winhttp: Use symbolic constants for HTTP status codes.

parent d36c6452
......@@ -1422,12 +1422,12 @@ static BOOL handle_authorization( request_t *request, DWORD status )
switch (status)
{
case 401:
case HTTP_STATUS_DENIED:
target = WINHTTP_AUTH_TARGET_SERVER;
level = WINHTTP_QUERY_WWW_AUTHENTICATE;
break;
case 407:
case HTTP_STATUS_PROXY_AUTH_REQ:
target = WINHTTP_AUTH_TARGET_PROXY;
level = WINHTTP_QUERY_PROXY_AUTHENTICATE;
break;
......@@ -1886,7 +1886,7 @@ static BOOL receive_response( request_t *request, BOOL async )
send_request( request, NULL, 0, NULL, 0, 0, 0, FALSE ); /* recurse synchronously */
continue;
}
else if (status == 401 || status == 407)
else if (status == HTTP_STATUS_DENIED || status == HTTP_STATUS_PROXY_AUTH_REQ)
{
if (request->hdr.disable_flags & WINHTTP_DISABLE_AUTHENTICATION) break;
......
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