MINOR: httpclient: don't add body when istlen is empty
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 22 Dec 2022 13:49:43 +0000 (14:49 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 22 Dec 2022 13:49:43 +0000 (14:49 +0100)
commita80b22eac4f4893cb603650ce813024d6689f802
tree0dc15479329f20b7d8e731e00a4513b5199f4ae2
parent70601c56da2e720285bfe7e0159eded8168ab66b
MINOR: httpclient: don't add body when istlen is empty

Don't try to create a request with a body in httpclient_req_gen() if the
payload ist has a ptr but no len.

Sometimes people have their httpclient stuck because they use an ist
with a data ptr but no len. Check the len so this mistake doesn't block
the client.
src/http_client.c