builtin: Minor polish

Only copy the host header if needed
parent 3efdc84b
......@@ -44,7 +44,7 @@ sub vcl_recv {
}
sub vcl_req_host {
if (req.http.host) {
if (req.http.host ~ "[[:upper:]]") {
set req.http.host = req.http.host.lower();
}
if (!req.http.host &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment