req
req copied to clipboard
http1.1的user-agent问题
在http1.1中我用
r.SetHeaderNonCanonical("user-agent", clientInfo.Client.UserAgent)
这个方法设置了ua,在发出请求时,会再次添加User-Agent
http2不存在此问题