rpcrt4: Only accept status code HTTP_STATUS_OK.

This commit is contained in:
Hans Leidekker 2013-08-28 13:31:55 +02:00 committed by Alexandre Julliard
parent 35468903cd
commit 0b900f2fd4
1 changed files with 1 additions and 1 deletions

View File

@ -2039,7 +2039,7 @@ static RPC_STATUS rpcrt4_http_check_response(HINTERNET hor)
ret = HttpQueryInfoW(hor, HTTP_QUERY_STATUS_CODE|HTTP_QUERY_FLAG_NUMBER, &status_code, &size, &index);
if (!ret)
return GetLastError();
if (status_code < 400)
if (status_code == HTTP_STATUS_OK)
return RPC_S_OK;
index = 0;
size = sizeof(buf);