diff --git a/links/links.go b/links/links.go index 4f7bbf1..11a7cb8 100644 --- a/links/links.go +++ b/links/links.go @@ -18,7 +18,6 @@ func FromHeadersOrDefault(h *http.Header, r *http.Request, defaultURL *url.URL) log.Info(r.Context(), "building URL from headers", log.Data{ "headers": h, "defaultURL": defaultURL.String(), - "host": r.Host, "url": r.URL.String(), }) path := h.Get("X-Forwarded-Path-Prefix") diff --git a/links/links_test.go b/links/links_test.go index 4601fc5..eb2236f 100644 --- a/links/links_test.go +++ b/links/links_test.go @@ -185,8 +185,7 @@ func Test_FromHeadersOrDefault_With_Forwarded_Headers(t *testing.T) { du.JoinPath() r := &http.Request{ - Host: "", - URL: &url.URL{Scheme: "http", Host: "example.com"}, + URL: &url.URL{Scheme: "http", Host: "example.com"}, } builder := FromHeadersOrDefault(&h, r, du) So(builder, ShouldNotBeNil)