Does 'option accept-invalid-http-response' work in HAProxy 1.7.12?

0

The server I am connecting to is returning what looks like an invalid Date header and I want HAProxy to ignore the error.

Unfortunately I have no control over the server, I am using a third party tool.

I have tried 'option accept-invalid-http-response' in both the backend and defaults sections, with the same result.

The invalid header isn't being ignored, my client always gets a '502 Bad Gateway' response.

From 'shows errors'

[21/Dec/2020:14:40:59.197] backend <BACKEND> (#3): invalid response
  frontend <FRONTEND> (#2), server <SERVER> (#1), event #5
  src <IP>:46508, session #6, session flags 0x0000008e
  HTTP msg state MSG_RQBEFORE(0), msg flags 0x00000000, tx flags 0x08600000
  HTTP chunk len 0 bytes, HTTP body len 0 bytes
  buffer flags 0x80008021, out 0 bytes, total 50 bytes
  pending 50 bytes, wrapping at 16384, error at position 50:
  00000  HTTP/1.1 204 OK\r\n
  00017  Date: Mon Dec 2020 14:40:58 GMT\r\n

Or maybe there is something else wrong with the response header.

Any help would be appreciated.

haproxy
asked on Stack Overflow Dec 21, 2020 by shifflettd

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0