Commit d3051cba authored by Dan Hipschman's avatar Dan Hipschman Committed by Alexandre Julliard

wininet: Don't forget the INTERNET_STATUS_REDIRECT callback in HttpEndRequest.

parent 2f2ccbd7
......@@ -878,6 +878,9 @@ BOOL WINAPI HttpEndRequestW(HINTERNET hRequest,
HeapFree(GetProcessHeap(),0,lpwhr->lpszVerb);
lpwhr->lpszVerb = WININET_strdupW(szGET);
HTTP_DrainContent(lpwhr);
INTERNET_SendCallback(&lpwhr->hdr, lpwhr->hdr.dwContext,
INTERNET_STATUS_REDIRECT, szNewLocation,
dwBufferSize);
rc = HTTP_HandleRedirect(lpwhr, szNewLocation);
if (rc)
rc = HTTP_HttpSendRequestW(lpwhr, NULL, 0, NULL, 0, 0, TRUE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment