HomeSoftware Heritage

varnish: simplify host header handling

Description

varnish: simplify host header handling

  • always downcase and trim the port number of inbound host headers;
  • only check aliases and servername once in vcl_recv; set a variable for matching in further vcl_* functions;
  • ensure all further vcl_* functions indeed use the variable for matching

Details

Provenance
olasdAuthored on Apr 27 2022, 2:51 PM
olasdPushed on Apr 27 2022, 5:34 PM
Differential Revision
D7703: varnish: simplify host header handling
Parents
rSPSITEebb08eec6fa5: varnish: set the backend_hint as soon as possible
Branches
Unknown
Tags
Unknown