mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 12:41:00 +02:00
BUG/MINOR: httpclient/lua: does not process headers when failed
Do not try to process the header list when it is NULL. This case can arrive when the request failed and did not return a response.
This commit is contained in:
parent
2a879001b5
commit
ef574b2101
@ -6988,7 +6988,7 @@ __LJMP static int hlua_httpclient_get_headers(lua_State *L, struct hlua_httpclie
|
||||
|
||||
lua_newtable(L);
|
||||
|
||||
for (hdr = hlua_hc->hc->res.hdrs; isttest(hdr->n); hdr++) {
|
||||
for (hdr = hlua_hc->hc->res.hdrs; hdr && isttest(hdr->n); hdr++) {
|
||||
struct ist n, v;
|
||||
int len;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user