wininet: Always use a full URL for redirects, even with an absolute path.
This commit is contained in:
parent
7aeffc442c
commit
4b2a15de9f
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue