|
@@ -147,7 +147,10 @@ func doRequest(req *http.Request, jar http.CookieJar, timeout TimeoutType) (*htt
|
|
client := newClient(jar, pool, cert, timeout)
|
|
client := newClient(jar, pool, cert, timeout)
|
|
res, err := client.Do(req)
|
|
res, err := client.Do(req)
|
|
// If this is the last cert, otherwise, continue to next cert if 403 or 5xx
|
|
// If this is the last cert, otherwise, continue to next cert if 403 or 5xx
|
|
- if i == len(certs)-1 || err == nil && res.StatusCode != 403 && res.StatusCode < 500 {
|
|
|
|
|
|
+ if i == len(certs)-1 || err == nil &&
|
|
|
|
+ res.StatusCode != 403 &&
|
|
|
|
+ res.StatusCode != 404 &&
|
|
|
|
+ res.StatusCode < 500 {
|
|
return res, client, err
|
|
return res, client, err
|
|
}
|
|
}
|
|
}
|
|
}
|