Skip to content

Commit f9bf9b7

Browse files
committed
[image-builder-bob] retry on bad request
1 parent edca0d5 commit f9bf9b7

File tree

1 file changed

+4
-0
lines changed
  • components/image-builder-bob/pkg/proxy

1 file changed

+4
-0
lines changed

components/image-builder-bob/pkg/proxy/proxy.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ func (proxy *Proxy) reverse(alias string) *httputil.ReverseProxy {
185185
}
186186
return true, nil
187187
}
188+
if resp.StatusCode == http.StatusBadRequest {
189+
log.WithField("URL", resp.Request.URL.String()).Warn("bad request")
190+
return true, nil
191+
}
188192

189193
return false, nil
190194
}

0 commit comments

Comments
 (0)