From b5e0114cadd011986c17bffc66fca1d597692682 Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Wed, 4 Feb 2026 16:43:40 +0100 Subject: [PATCH] Trim the data field of dquotes when finding records The INWX API trims leading and trailing quotes in the data field, so it's not possible to create e.g. TXT records with quoted content --- client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index 7a140c0..6eb3dec 100644 --- a/client.go +++ b/client.go @@ -8,6 +8,7 @@ import ( "io" "net/http" "net/http/cookiejar" + "strings" "time" "github.com/pquerna/otp/totp" @@ -151,7 +152,7 @@ func (c *client) findRecords(ctx context.Context, record nameserverRecord, domai } if matchContent { - request.Content = record.Content + request.Content = strings.Trim(record.Content, "\"") } response, err := c.call(ctx, "nameserver.info", request)