wininet: Always use a full URL for redirects, even with an absolute path.

This commit is contained in:
Alexandre Julliard 2009-06-05 16:42:44 +02:00
parent 7aeffc442c
commit 4b2a15de9f
1 changed files with 0 additions and 2 deletions

View File

@ -3255,8 +3255,6 @@ static LPWSTR HTTP_GetRedirectURL(LPWININETHTTPREQW lpwhr, LPCWSTR lpszUrl)
LPWSTR orig_url; LPWSTR orig_url;
LPWSTR combined_url; LPWSTR combined_url;
if (lpszUrl[0]=='/') return WININET_strdupW( lpszUrl );
urlComponents.dwStructSize = sizeof(URL_COMPONENTSW); urlComponents.dwStructSize = sizeof(URL_COMPONENTSW);
urlComponents.lpszScheme = (lpwhr->hdr.dwFlags & INTERNET_FLAG_SECURE) ? szHttps : szHttp; urlComponents.lpszScheme = (lpwhr->hdr.dwFlags & INTERNET_FLAG_SECURE) ? szHttps : szHttp;
urlComponents.dwSchemeLength = 0; urlComponents.dwSchemeLength = 0;