From b2a3b778a75acd5cf83da3f795dd693023f5eaef Mon Sep 17 00:00:00 2001 From: Adin Schmahmann Date: Wed, 26 Jul 2023 06:37:18 -0400 Subject: [PATCH] fix: overshadowing error causing problems with HEAD responses --- gateway/handler_defaults.go | 1 - 1 file changed, 1 deletion(-) diff --git a/gateway/handler_defaults.go b/gateway/handler_defaults.go index 00189969d9..2096799c63 100644 --- a/gateway/handler_defaults.go +++ b/gateway/handler_defaults.go @@ -30,7 +30,6 @@ func (i *handler) serveDefaults(ctx context.Context, w http.ResponseWriter, r *h switch r.Method { case http.MethodHead: - var headResp *HeadResponse pathMetadata, headResp, err = i.backend.Head(ctx, rq.mostlyResolvedPath()) if err != nil { if isWebRequest(rq.responseFormat) {