You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pre class="text">By default, HAProxy complies with RFC7230 in terms of message parsing. This
13758
-
means that invalid characters in header names are not permitted and cause an
13759
-
error to be returned to the client. This is the desired behavior as such
13760
-
forbidden characters are essentially used to build attacks exploiting server
13761
-
weaknesses, and bypass security filtering. Sometimes, a buggy browser or
13762
-
server will emit invalid header names for whatever reason (configuration,
13763
-
implementation) and the issue will not be immediately fixed. In such a case,
13764
-
it is possible to relax HAProxy's header name parser to accept any character
13765
-
even if that does not make sense, by specifying this option. This option also
13766
-
relaxes the test on the HTTP version format, it allows multiple digits for
13767
-
both the major and the minor version.
13775
+
<pre class="text">Similarly to "<a href="#option%20accept-invalid-http-request">option accept-invalid-http-request</a>", this option may be used to
13776
+
relax parsing rules of HTTP responses. It should only be enabled for trusted
13777
+
legacy servers to accept some invalid responses. Most of rules concern the H1
13778
+
parsing for historical reason. Newer HTTP versions tends to be cleaner and
13779
+
applications follow more stickly these protocols.
13780
+
13781
+
When this option is set, the following rules are observed:
13782
+
13783
+
* In H1 only, invalid characters, including NULL character, in header name
13784
+
will be accepted;
13785
+
13786
+
* In H1 only, NULL character in header value will be accepted;
13787
+
13788
+
* In H1 only, empty values or several "chunked" value occurrences for
13789
+
Transfer-Encoding header will be accepted;
13790
+
13791
+
* In H1 only, no check will be performed against the authority and the Host
13792
+
header value.
13793
+
13794
+
* In H1 only, tests on the HTTP version will be relaxed. It will allow
13795
+
different protocol names (e.g. RTSP), and multiple digits for both the
13796
+
major and the minor version.
13768
13797
13769
13798
This option should never be enabled by default as it hides application bugs
13770
13799
and open security breaches. It should only be deployed after a problem has
0 commit comments