Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
aryan-p03 committed Jan 20, 2025
1 parent b5cc7c3 commit 28ad67f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion links/links.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
3 changes: 1 addition & 2 deletions links/links_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 28ad67f

Please sign in to comment.