Skip to content

Commit

Permalink
fail request if back content encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
jurassix committed Feb 9, 2024
1 parent 4f9a8c3 commit 9a75a2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relay/traffic/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (handler *Handler) ServeHTTP(response http.ResponseWriter, request *http.Re

encoding, err := GetContentEncoding(request)
if err != nil {
logger.Printf("URL %v error in request content encoding: %v", request.URL, err)
http.Error(response, fmt.Sprintf("URL %v error in request content encoding: %v", request.URL, err), 500)
request.Body = http.NoBody
return
}
Expand Down

0 comments on commit 9a75a2c

Please sign in to comment.