wininet: Handle http headers correctly when length is 0.
commitb5dcfdad5f2f91bac16e62342fed171dbeb15c08
authorHans Lehnert <hans.lehnert@gmail.com>
Thu, 13 Jul 2023 03:31:39 +0000 (12 20:31 -0700)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 13 Jul 2023 21:42:46 +0000 (13 23:42 +0200)
tree6703648686727fae9bc69025a03ff4d07d6b0165
parent96edde17d0d552b8d8453a621929c1fe29376027
wininet: Handle http headers correctly when length is 0.

In HttpSendRequestW and HttpSendRequestExW, if the header pointer is not
null but the length parameter is 0, the header length should be derived
from the string length instead.

In HttpSendRequestA and HttpSendRequestExA, on the same scenario, the
function should fail instead.
dlls/wininet/http.c
dlls/wininet/tests/http.c