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:
parent
d03fb496c0
commit
93cfae053a
@ -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 New Issue
Block a user