haproxy-auth-request
haproxy-auth-request copied to clipboard
Support for 'expect' header
Hi,
I don't know if this is actively developed, but I struck an issue with a WEBDAV server where it sent an expect: 100-continue header which caused authelia to emit HTTP/1.1 100 Continue before sending the authentication results.
The auth-request.lua script immediately disconnected as soon as it saw the HTTP/1.1 100 Continue with the message
haproxy[231]: Invalid status code in auth-request backend 'be_authelia': 100
Adding the line
headers["expect"] = nil
fixes the problem.
Thanks
I don't know if this is actively developed,
Not actively developed, because I consider this to be feature complete, I'll however try to respond to issues and to fix bugs (if any).
fixes the problem.
That sounds reasonable, would you consider creating a PR that fixes the issue for you? If possible include a VTest test that verifies the behavior. Explanation is here: https://github.com/TimWolla/haproxy-auth-request/pull/54#issuecomment-1178992261