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

This commit is contained in:
Dan Hipschman 2008-04-23 15:33:18 -07:00 committed by Alexandre Julliard
parent 2f2ccbd779
commit d3051cba22
1 changed files with 3 additions and 0 deletions

View File

@ -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);