winhttp: Use symbolic constants for HTTP status codes.

This commit is contained in:
Hans Leidekker 2013-03-05 12:14:25 +01:00 committed by Alexandre Julliard
parent d36c6452ce
commit 58e7d39c7f
1 changed files with 3 additions and 3 deletions

View File

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