Hi
Conditions:
- The website sends 2 "link" headers in response
- I'm trying to add more from LUA, using "http-response lua.processResponse"
(backend section) -> "core.register_action("processResponse", { "http-res" },
function(txn)"
- Haproxy 1.9.7, LUA 5.3
Case 1:
Syntax that I use since old versions: txn.http:res_add_header('link','12231')
- New header doesn't appear and even native website's headers deleted
Case 2:
Syntax from current docs: txn.http:res_add_header(txn.http,'link','12232')
- New header doesn't appear, but native headers stay
Case 3:
Funny mix with both types.
txn.http:res_add_header('link','12231')
txn.http:res_add_header(txn.http,'link','12232')
- The first new header appear successfully and native headers also stay
Case 4:
Same mix backwards.
txn.http:res_add_header(txn.http,'link','12232')
txn.http:res_add_header('link','12231')
- Same as case #2
Should it be some other syntax?)
--
Wert