]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: fcgi: Don't set the status to 302 if it is already set
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 17 Feb 2025 15:37:47 +0000 (16:37 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 17 Feb 2025 15:37:53 +0000 (16:37 +0100)
commitca79ed5eefaa65fc82e1a8c1ec4308eaaadaebd1
tree6b97fdac574234713c472aa8f3cc0dd918866098
parent34542d5ec29c89ec45b63107f9330f185f0bfd40
BUG/MINOR: fcgi: Don't set the status to 302 if it is already set

When a "Location" header was found in a FCGI response, the status code was
forced to 302. But it should only be performed if no status code was set
first.

So now, we take care to not override an already defined status code when the
"Location" header is found.

This patch should fix the issue #2865. It must backported to all stable
versions.
src/h1_htx.c