Fix endpoint for update_credentials (broken by 9dcadf72)
authorMikael Berthe <mikael@lilotux.net>
Fri, 07 Sep 2018 12:43:40 +0200
changeset 241 8538eaf18ce5
parent 240 80c81e9b77b4
child 242 2ec8b4cdf94e
Fix endpoint for update_credentials (broken by 9dcadf72)
account.go
--- a/account.go	Thu Sep 06 11:43:44 2018 +0200
+++ b/account.go	Fri Sep 07 12:43:40 2018 +0200
@@ -499,7 +499,7 @@
 	w.Close()
 
 	// Prepare the request
-	req, err := mc.prepareRequest(endPoint, rest.Patch, params)
+	req, err := mc.prepareRequest("v1/"+endPoint, rest.Patch, params)
 	if err != nil {
 		return nil, errors.Wrap(err, "prepareRequest failed")
 	}