mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-26 19:22:57 -04:00
Thanks to previous patches, the request messages are now sanitized to properly handle Upgrade requests. Now, if a 'connection: upgrade' header value was found while no 'Upgrade' header, the 'upgrade' values is removed from the 'connection' header. Conversely the opposite is also performed. If 'Upgrade' header was found, but no "conneciotn: upgrade" header value, all occurrences of 'Upgrade' header are refused. This patch depends on following ones: * MINOR: h1: Add a H1M flag to specify a non-empty 'Upgrade:' header was parsed * MINOR: http: Add function to remove all occurrences of a value in a header It should fix the issue 3397. But the H2 part should be reviewed too, and probably the H1 response parsing, to be consistent with this change. The series should be backported as far as 2.4. |
||
|---|---|---|
| .. | ||
| haproxy | ||
| import | ||
| make | ||