Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ezilber-akamai committed Sep 30, 2024
1 parent bbf149e commit 5d250dc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ func coupleAPIErrors(resp *http.Response, err error) (*http.Response, error) {
// If the upstream server fails to respond to the request,
// the HTTP server will respond with a default error page with Content-Type "text/html".
if resp.StatusCode == http.StatusBadGateway && responseContentType == "text/html" {
//return nil, &Error{Code: http.StatusBadGateway, Message: http.StatusText(http.StatusBadGateway)}
return nil, &Error{Code: http.StatusBadGateway, Message: http.StatusText(http.StatusBadGateway), Response: resp}
}

Expand Down

0 comments on commit 5d250dc

Please sign in to comment.