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 1f92d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registrar.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (api *API) RegistrarDomains(ctx context.Context, accountID string) ([]Regis
func (api *API) TransferRegistrarDomain(ctx context.Context, accountID, domainName string) ([]RegistrarDomain, error) {
uri := fmt.Sprintf("/accounts/%s/registrar/domains/%s/transfer", accountID, domainName)

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 1f92d84

Please sign in to comment.