Skip to content

Commit

Permalink
add invalid input as instant rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
antihax committed Mar 27, 2021
1 parent 6ba4193 commit dc8f6a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/apicache/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (t *APICacheTransport) RoundTrip(req *http.Request) (*http.Response, error)
fmt.Printf("%s", dump)
}
// Get out for "our bad" statuses
if res.StatusCode >= 400 && res.StatusCode < 420 {
if res.StatusCode >= 400 && res.StatusCode < 420 || res.StatusCode == 422 {
if res.StatusCode != 403 {
dump, _ := httputil.DumpRequest(req, true)
fmt.Printf("%s", dump)
Expand Down

0 comments on commit dc8f6a8

Please sign in to comment.