wininet: Handle HTTP 303 redirects.

This commit is contained in:
Lei Zhang 2008-11-04 16:44:30 -08:00 committed by Alexandre Julliard
parent 905f628c05
commit be2570f7a0

View File

@ -874,7 +874,7 @@ BOOL WINAPI HttpEndRequestW(HINTERNET hRequest,
{
DWORD dwCode,dwCodeLength=sizeof(DWORD);
if(HTTP_HttpQueryInfoW(lpwhr,HTTP_QUERY_FLAG_NUMBER|HTTP_QUERY_STATUS_CODE,&dwCode,&dwCodeLength,NULL) &&
(dwCode==302 || dwCode==301))
(dwCode==302 || dwCode==301 || dwCode==303))
{
WCHAR szNewLocation[INTERNET_MAX_URL_LENGTH];
dwBufferSize=sizeof(szNewLocation);