go默认httpclient的UserAgent在哪里设置的?

eltonto · · 4087 次点击
找到了,系统是有设置的,是自已没注意到 ``` // NOTE: This is not intended to reflect the actual Go version being used. // It was changed at the time of Go 1.1 release because the former User-Agent // had ended up on a blacklist for some intrusion detection systems. // See https://codereview.appspot.com/7532043. const defaultUserAgent = "Go-http-client/1.1" ```
#1