[Wine-patches] [eter-2.1 1/9] winhttp: Use symbolic constants for HTTP status codes. (eterbug #10937).

Dmitry Timoshkov dmitry на baikal.ru
Пн Дек 14 10:33:16 MSK 2015


From: Hans Leidekker <hans на codeweavers.com>
---
 dlls/winhttp/request.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index cb1b240..9a0aec7 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -1423,12 +1423,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;
@@ -1887,7 +1887,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;
 
-- 
2.6.4



Подробная информация о списке рассылки Wine-patches