fix: 尽量避免因代理问题导致google request异常

This commit is contained in:
Qu Xuan
2020-04-22 10:47:27 +08:00
parent d9575b2078
commit f7bf34ee18
+1
View File
@@ -704,6 +704,7 @@ func _jsonRequest(client *http.Client, method httputils.THttpMethod, url string,
"EOF",
"i/o timeout",
"TLS handshake timeout",
"connection reset by peer",
} {
if strings.Index(err.Error(), msg) >= 0 {
retry = true