From 6be9071858ef99db2e9dcdd7b7b983768c6c93c0 Mon Sep 17 00:00:00 2001
From: Thomas Schneider <thomas@fsmpi.rwth-aachen.de>
Date: Wed, 22 Jun 2022 22:42:49 +0200
Subject: [PATCH] DestroyRecord: method is actually DELETE

---
 rwthdns.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rwthdns.go b/rwthdns.go
index 30f56d4..b07574b 100644
--- a/rwthdns.go
+++ b/rwthdns.go
@@ -184,7 +184,7 @@ func (c *Client) DestroyRecord(record int) (Record, error) {
 	q := url.Values{}
 	q.Set("record_id", url.QueryEscape(fmt.Sprintf("%d", record)))
 
-	res, err := c.do("POST", "destroy_record", q)
+	res, err := c.do("DELETE", "destroy_record", q)
 	if err != nil {
 		return Record{}, err
 	}
-- 
GitLab