1
0
mirror of https://github.com/go-acme/lego.git synced 2024-12-01 10:41:09 +02:00

Use custom lego user-agent in requests

This commit is contained in:
Jan Broer 2016-02-16 18:38:51 +01:00
parent d03fb496c0
commit 93cfae053a

View File

@ -161,6 +161,7 @@ func (c *DNSProviderCloudFlare) makeRequest(method, uri string, body io.Reader)
req.Header.Set("X-Auth-Email", c.authEmail) req.Header.Set("X-Auth-Email", c.authEmail)
req.Header.Set("X-Auth-Key", c.authKey) req.Header.Set("X-Auth-Key", c.authKey)
req.Header.Set("User-Agent", userAgent())
client := http.DefaultClient client := http.DefaultClient
client.Timeout = time.Duration(30 * time.Second) client.Timeout = time.Duration(30 * time.Second)