We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 089309d + dc7f8fc commit 376d924Copy full SHA for 376d924
pkg/ddns/providers/hetzner.go
@@ -12,7 +12,7 @@ import (
12
)
13
14
const (
15
- hetznerBaseURL = "https://dns.hetzner.com/api/v1/records/"
+ hetznerBaseURL = "https://dns.hetzner.com/api/v1/records"
16
contentType = "Content-Type"
17
contentTypeJSON = "application/json"
18
headerAuthToken = "Auth-API-Token"
@@ -75,7 +75,7 @@ func (c *client) updateRecord(record *Record) error {
75
if err != nil {
76
return fmt.Errorf("marshal update: %w", err)
77
}
78
- url := hetznerBaseURL + record.ID
+ url := hetznerBaseURL + "/" + record.ID
79
body, err := c.fetch(http.MethodPut, url, data)
80
81
return err
0 commit comments