Skip to content

Commit

Permalink
fix: domain list endpoint only accepts get requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohsin Raza committed Feb 17, 2024
1 parent 3072a4b commit 4423fe3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/1506.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
fix: Fix request method to call domain list endpint from POST to GET
```
2 changes: 1 addition & 1 deletion registrar.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (api *API) RegistrarDomain(ctx context.Context, accountID, domainName strin
func (api *API) RegistrarDomains(ctx context.Context, accountID string) ([]RegistrarDomain, error) {
uri := fmt.Sprintf("/accounts/%s/registrar/domains", accountID)

res, err := api.makeRequestContext(ctx, http.MethodPost, uri, nil)
res, err := api.makeRequestContext(ctx, http.MethodGet, uri, nil)
if err != nil {
return []RegistrarDomain{}, err
}
Expand Down

0 comments on commit 4423fe3

Please sign in to comment.