Skip to content

Commit

Permalink
fix: overshadowing error causing problems with HEAD responses
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann authored and hacdias committed Jul 26, 2023
1 parent 7812cd6 commit 90fccc2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion gateway/handler_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Check warning on line 33 in gateway/handler_defaults.go

View check run for this annotation

Codecov / codecov/patch

gateway/handler_defaults.go#L33

Added line #L33 was not covered by tests
if err != nil {
if isWebRequest(rq.responseFormat) {
Expand Down

0 comments on commit 90fccc2

Please sign in to comment.