aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
Diffstat (limited to 'account.go')
-rw-r--r--account.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/account.go b/account.go
index 4438ce8..f4e8c07 100644
--- a/account.go
+++ b/account.go
@@ -117,6 +117,7 @@ func (a *Account) Invalidate() {
//
//A successful POST request implies Invalidate() since it may change metadata.
func (a *Account) Update(headers AccountHeaders, opts *RequestOptions) error {
+ ensureInitializedByReflection(headers)
_, err := Request{
Method: "POST",
Headers: headers.ToHTTP(),
@@ -137,6 +138,7 @@ func (a *Account) Update(headers AccountHeaders, opts *RequestOptions) error {
//
//A successful PUT request implies Invalidate() since it may change metadata.
func (a *Account) Create(headers AccountHeaders, opts *RequestOptions) error {
+ ensureInitializedByReflection(headers)
_, err := Request{
Method: "PUT",
Headers: headers.ToHTTP(),