diff --git a/internal/client/cloudflare.go b/internal/client/cloudflare.go index 6def16c..c4d2b7c 100644 --- a/internal/client/cloudflare.go +++ b/internal/client/cloudflare.go @@ -88,7 +88,7 @@ func (cfc *Cloudflare) Run(enabled common.Enable, ipv4, ipv6 string) (msg []stri func (cfc *Cloudflare) getParseRecord(domain, recordType string) (domainId, recordIP string, err error) { httpClient := getGeneralHttpClient() url := "https://api.cloudflare.com/client/v4/zones/" + cfc.ZoneID + "/dns_records?name=" + domain - req, err := http.NewRequest("GET", url, nil) + req, err := http.NewRequest("GET", url, http.NoBody) if err != nil { return }