diff --git a/appview/podcastindex/client.go b/appview/podcastindex/client.go index 9a70e43..ba98d95 100644 --- a/appview/podcastindex/client.go +++ b/appview/podcastindex/client.go @@ -4,6 +4,7 @@ import ( "encoding/json" "fmt" "io" + "maps" "net/http" "net/url" "strconv" @@ -36,9 +37,7 @@ func (c *Client) get(path string, params url.Values) (json.RawMessage, error) { if err != nil { return nil, err } - for k, v := range authHeaders(c.apiKey, c.apiSecret) { - req.Header[k] = v - } + maps.Copy(req.Header, authHeaders(c.apiKey, c.apiSecret)) resp, err := c.http.Do(req) if err != nil {