From 93cfae053aad5f833a222f4ea27ad4ccdefa658b Mon Sep 17 00:00:00 2001 From: Jan Broer Date: Tue, 16 Feb 2016 18:38:51 +0100 Subject: [PATCH] Use custom lego user-agent in requests --- acme/dns_challenge_cloudflare.go | 1 + 1 file changed, 1 insertion(+) diff --git a/acme/dns_challenge_cloudflare.go b/acme/dns_challenge_cloudflare.go index 38f89dac..f6eea687 100644 --- a/acme/dns_challenge_cloudflare.go +++ b/acme/dns_challenge_cloudflare.go @@ -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)