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.
This commit is contained in:
parent
6489a1c242
commit
7b002a39b8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue