client: reject requests with multiple content-lengths and/or TEs master
authorJo-Philipp Wich <jo@mein.io>
Sat, 5 Apr 2025 23:35:10 +0000 (01:35 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sat, 5 Apr 2025 23:36:37 +0000 (01:36 +0200)
commitc7294e7037a9e6f8fb4b9084d31cb8e98bd7b5f9
tree07a7b4a58802f9240f4f447c237bd832bd9ae879
parent3d6f01b9d01a6ffa9e73705112cd51bfd98ec2fc
client: reject requests with multiple content-lengths and/or TEs

Add logic to reject requests with multiple Content-Length headers or both
Content-Length and Transfer-Encoding headers.

Fixes: #8
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
client.c