haproxy-auth-request icon indicating copy to clipboard operation
haproxy-auth-request copied to clipboard

Support for 'expect' header

Open systemmonkey42 opened this issue 3 years ago • 1 comments
trafficstars

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

systemmonkey42 avatar Oct 05 '22 03:10 systemmonkey42

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

TimWolla avatar Oct 05 '22 18:10 TimWolla