Fix Dynu DNS record updates to use POST endpoint

This commit is contained in:
beatz174-bit
2026-04-29 13:46:17 +10:00
parent 99fcdef286
commit 821dc055c1
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ func TestClientCreateDNSRecordSendsIPv4AddressForARecord(t *testing.T) {
func TestClientUpdateDNSRecordSendsIPv6AddressForAAAARecord(t *testing.T) {
var captured map[string]any
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if r.Method != http.MethodPut || r.URL.Path != "/dns/1001/record/2002" {
if r.Method != http.MethodPost || r.URL.Path != "/dns/1001/record/2002" {
t.Fatalf("unexpected request %s %s", r.Method, r.URL.Path)
}
if err := json.NewDecoder(r.Body).Decode(&captured); err != nil {