MINOR: httpclient/lua: return an error when it can't generate the request
authorWilliam Lallemand <wlallemand@haproxy.org>
Tue, 26 Oct 2021 13:01:53 +0000 (15:01 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 27 Oct 2021 08:19:58 +0000 (10:19 +0200)
commit6137a9ee204cc01ebb9e17f4e22cfaefb9d61ac8
treed1cd59d37494f094ca64ddd7bf455afb0b915f52
parentdc2cc9008bf2518e4a4130c224983bc4c710d386
MINOR: httpclient/lua: return an error when it can't generate the request

Add a check during the httpclient request generation which yield an lua
error when the generation didn't work. The most common case is the lack
of space in the buffer, it can because of too much headers or a too big
body.
src/hlua.c