From 735c7c4465a77d2953e9cb1328284e754f797db7 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Mon, 5 Feb 2018 22:06:18 +0100 Subject: apparently having a private member is not enough --- account.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'account.go') 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(), -- cgit v1.2.3