wininet: replace some numeric http status codes

Karsten Elfenbein kelfe at gmx.de
Sun May 8 05:36:53 CDT 2011


---
 dlls/wininet/http.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 2be92e6..b246d67 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -4575,7 +4575,10 @@ static DWORD HTTP_HttpEndRequestW(http_request_t *request, DWORD dwFlags, DWORD_
     {
         DWORD dwCode,dwCodeLength = sizeof(DWORD);
         if (HTTP_HttpQueryInfoW(request, HTTP_QUERY_FLAG_NUMBER|HTTP_QUERY_STATUS_CODE, &dwCode, &dwCodeLength, NULL) == ERROR_SUCCESS
-            && (dwCode == 302 || dwCode == 301 || dwCode == 303 || dwCode == 307))
+            && (dwCode == HTTP_STATUS_REDIRECT ||
+                dwCode == HTTP_STATUS_MOVED ||
+                dwCode == HTTP_STATUS_REDIRECT_METHOD ||
+                dwCode == HTTP_STATUS_REDIRECT_KEEP_VERB))
         {
             WCHAR *new_url, szNewLocation[INTERNET_MAX_URL_LENGTH];
             dwBufferSize=sizeof(szNewLocation);
-- 
1.7.5.rc3


--------------050808080004080103040908--



More information about the wine-patches mailing list