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-Key", c.authKey)
req.Header.Set("User-Agent", userAgent())
client := http.DefaultClient
client.Timeout = time.Duration(30 * time.Second)