mirror of
https://github.com/reactos/wine.git
synced 2025-02-13 08:44:54 +00:00
wininet: Make sure redirected POST requests become GET requests.
This commit is contained in:
parent
cd38e554b6
commit
aac2e8dd19
@ -3467,6 +3467,10 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
|
||||
if ((dwStatusCode==HTTP_STATUS_REDIRECT || dwStatusCode==HTTP_STATUS_MOVED) &&
|
||||
HTTP_HttpQueryInfoW(lpwhr,HTTP_QUERY_LOCATION,szNewLocation,&dwBufferSize,NULL))
|
||||
{
|
||||
/* redirects are always GETs */
|
||||
HeapFree(GetProcessHeap(), 0, lpwhr->lpszVerb);
|
||||
lpwhr->lpszVerb = WININET_strdupW(szGET);
|
||||
|
||||
HTTP_DrainContent(lpwhr);
|
||||
INTERNET_SendCallback(&lpwhr->hdr, lpwhr->hdr.dwContext,
|
||||
INTERNET_STATUS_REDIRECT, szNewLocation,
|
||||
|
Loading…
x
Reference in New Issue
Block a user