mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-10 17:32:03 -04:00
BUG/MINOR: h1: Don't test the host header during response parsing
During the H1 message parsing, the host header is tested to be sure it matches the request's authority, if defined. When there are multiple host headers, we also take care they are all the same. Of course, these tests must only be performed on the requests. A host header in a response has no special meaning. This patch must be backported to 2.1.
This commit is contained in:
parent
c65f656d75
commit
bc7c03eba3
1 changed files with 1 additions and 1 deletions
2
src/h1.c
2
src/h1.c
|
|
@ -833,7 +833,7 @@ int h1_headers_to_hdr_list(char *start, const char *stop,
|
|||
break;
|
||||
}
|
||||
}
|
||||
else if (isteqi(n, ist("host"))) {
|
||||
else if (!(h1m->flags & H1_MF_RESP) && isteqi(n, ist("host"))) {
|
||||
if (host_idx == -1) {
|
||||
struct ist authority;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue