forked from TrueCloudLab/lego
Use custom lego user-agent in requests
This commit is contained in:
parent
d03fb496c0
commit
93cfae053a
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue