File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
components/image-builder-bob/pkg/proxy Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,8 @@ func (proxy *Proxy) reverse(alias string) *httputil.ReverseProxy {
168
168
169
169
client := retryablehttp .NewClient ()
170
170
client .RetryMax = 3
171
- client .CheckRetry = func (ctx context.Context , resp * http.Response , err error ) (bool , error ) {
171
+ client .
172
+ client .CheckRetry = func (ctx context.Context , resp * http.Response , err error ) (bool , error ) {
172
173
if err != nil {
173
174
log .WithError (err ).Warn ("saw error during CheckRetry" )
174
175
return false , err
@@ -185,6 +186,10 @@ func (proxy *Proxy) reverse(alias string) *httputil.ReverseProxy {
185
186
}
186
187
return true , nil
187
188
}
189
+ if resp .StatusCode == http .StatusBadRequest {
190
+ log .WithField ("URL" , resp .Request .URL .String ()).Warn ("bad request" )
191
+ return true , nil
192
+ }
188
193
189
194
return false , nil
190
195
}
You can’t perform that action at this time.
0 commit comments