Commit be2570f7 authored by Lei Zhang's avatar Lei Zhang Committed by Alexandre Julliard

wininet: Handle HTTP 303 redirects.

parent 905f628c
......@@ -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);
......
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