mirror of
https://github.com/gospider007/requests.git
synced 2025-12-24 13:57:52 +08:00
sync
This commit is contained in:
@@ -38,11 +38,7 @@ func (obj *reqTask) suppertRetry() bool {
|
||||
return false
|
||||
}
|
||||
func getKey(option *RequestOption, req *http.Request) (key string) {
|
||||
var proxyUser string
|
||||
if option.proxy != nil {
|
||||
proxyUser = option.proxy.User.String()
|
||||
}
|
||||
return fmt.Sprintf("%s@%s@%s", proxyUser, option.proxy.Host, req.URL.Host)
|
||||
return fmt.Sprintf("%s@%s", getAddr(option.proxy), getAddr(req.URL))
|
||||
}
|
||||
|
||||
type roundTripper struct {
|
||||
|
||||
Reference in New Issue
Block a user