wininet: Allow a NULL value to be passed into HTTP_ProcessHeader

instead of crashing so that when used with the replace flag it will
delete an existing value.
oldstable
Rob Shearman 2007-01-12 19:16:49 -06:00 committed by Alexandre Julliard
parent 6489a1c242
commit 7b002a39b8
1 changed files with 2 additions and 0 deletions

View File

@ -2873,6 +2873,8 @@ static BOOL HTTP_ProcessHeader(LPWININETHTTPREQW lpwhr, LPCWSTR field, LPCWSTR v
return HTTP_InsertCustomHeader(lpwhr, &hdr);
}
/* no value to delete */
else return TRUE;
if (dwModifier & HTTP_ADDHDR_FLAG_REQ)
lphttpHdr->wFlags |= HDR_ISREQUEST;