Page MenuHomeSoftware Heritage

varnish: simplify host header handling
ClosedPublic

Authored by olasd on Apr 27 2022, 5:08 PM.

Details

Summary
  • 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
Test Plan

testing this in vagrant admin-rp1 worked fine

Diff Detail

Repository
rSPSITE puppet-swh-site
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.