wininet: Handle HTTP_STATUS_REDIRECT_METHOD.
This commit is contained in:
parent
dd7514a38d
commit
94deb85d12
|
@ -3787,7 +3787,9 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *lpwhr, LPCWSTR lpszHeaders,
|
|||
{
|
||||
WCHAR *new_url, szNewLocation[INTERNET_MAX_URL_LENGTH];
|
||||
dwBufferSize=sizeof(szNewLocation);
|
||||
if ((dwStatusCode==HTTP_STATUS_REDIRECT || dwStatusCode==HTTP_STATUS_MOVED) &&
|
||||
if ((dwStatusCode == HTTP_STATUS_REDIRECT ||
|
||||
dwStatusCode == HTTP_STATUS_MOVED ||
|
||||
dwStatusCode == HTTP_STATUS_REDIRECT_METHOD) &&
|
||||
HTTP_HttpQueryInfoW(lpwhr,HTTP_QUERY_LOCATION,szNewLocation,&dwBufferSize,NULL) == ERROR_SUCCESS)
|
||||
{
|
||||
if (strcmpW(lpwhr->lpszVerb, szGET) && strcmpW(lpwhr->lpszVerb, szHEAD))
|
||||
|
|
Loading…
Reference in New Issue