Fix user agent using hardcoded 1.0 version.

This commit is contained in:
Aidan Holm
2024-10-29 22:34:24 +08:00
committed by nkanaev
parent 0cef51c6ac
commit 2dc58c5c8e
2 changed files with 6 additions and 0 deletions

View File

@@ -32,6 +32,10 @@ func (c *Client) getConditional(url, lastModified, etag string) (*http.Response,
var client *Client
func SetVersion(num string) {
client.userAgent = "Yarr/" + num
}
func init() {
transport := &http.Transport{
Proxy: http.ProxyFromEnvironment,