fix(ionos): use filepath/path for joining URL paths to avoid errors in Windows (#984)

This commit is contained in:
jccint
2025-11-01 20:15:34 +01:00
committed by GitHub
parent 95bcce2809
commit cdaf05e4ab

View File

@@ -7,7 +7,7 @@ import (
"io"
"net/http"
"net/url"
"path/filepath"
"path"
"strings"
"github.com/qdm12/ddns-updater/internal/provider/errors"
@@ -45,7 +45,7 @@ func (p *Provider) get(ctx context.Context, client *http.Client,
u := url.URL{
Scheme: "https",
Host: "api.hosting.ionos.com",
Path: filepath.Join("/dns/v1/", subPath),
Path: path.Join("/dns/v1/", subPath),
RawQuery: queryParams.Encode(),
}