Skip to content

Commit

Permalink
Logging of backend names used wrong header name in the log statement.…
Browse files Browse the repository at this point in the history
… This prevented the backend from being logged in varnishncsa. The correct header ("Backend-Name") is now used.
  • Loading branch information
Kristian Grønfeldt Sørensen committed Jun 28, 2021
1 parent fdf92cc commit f8448f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vcl/fokuson.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ sub vcl_deliver {

# Log the backend name - but not for cache hits.
if (obj.hits == 0){
std.log("backend:" + resp.http.Backend);
std.log("backend:" + resp.http.Backend-Name);
}
# Don't give away backend names to clients. Primarily for security reasons.
unset resp.http.Backend-Name;
Expand Down

0 comments on commit f8448f5

Please sign in to comment.