]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http-rules: Group all processing of early-hint rule in its case clause
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 17 Jan 2020 15:47:42 +0000 (16:47 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:45 +0000 (15:18 +0100)
commit5275aa75403b65db20be5caa8261e9c7fcf3d7c2
tree2bde7f6fa720e0e8b7735fa46420411b1f25b9ee
parent046cf44f6c021b635897ea8d8a65926a03f9eb40
MINOR: http-rules: Group all processing of early-hint rule in its case clause

To know if the 103 response start-line must be added, we test if it is the first
rule of the ruleset or if the previous rule is not an early-hint rule. And at
the end, to know if the 103 response must be terminated, we test if it is the
last rule of the ruleset or if the next rule is not an early-hint rule. This
way, all the code dealing with early-hint rules is grouped in its case clause.
src/http_ana.c