From 90fccc2e0ad61492e1cf2def7178ac765fd9b2f0 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 00189969d..2096799c6 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) {