Im struggling to figure out how to modify the *Response* headers within
haproxy. Here is the logic I would like to implement:

IF response_status_code == 304 THEN remove header "Content-Type"

I believe I need to setup an ACL rule to capture the status code part, and
then use rspidel to conditionally remove the Content-Type header based on
the ACL rule. However Im struggling with how to specify this ACL rule for
the response status code. Im also not sure where to place this logic, in the
frontend or backend? Any support would be greatly appreciated.

Thanks

larry

Reply via email to