Skip to content

Commit

Permalink
[image-builder-bob] retry on bad request (#18621)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylos101 authored Aug 30, 2023
1 parent e754fc6 commit 8d0e768
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/image-builder-bob/pkg/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ func (proxy *Proxy) reverse(alias string) *httputil.ReverseProxy {

return true, nil
}
if resp.StatusCode == http.StatusBadRequest {
log.WithField("URL", resp.Request.URL.String()).Warn("bad request")
return true, nil
}

return false, nil
}
Expand Down

0 comments on commit 8d0e768

Please sign in to comment.