aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2018-02-05 22:06:18 +0100
committerStefan Majewsky <majewsky@gmx.net>2018-02-05 22:06:18 +0100
commit735c7c4465a77d2953e9cb1328284e754f797db7 (patch)
tree0df31162a4b0b769f2ffe641bd7ae4072b7224cf /account.go
parent3a24741929cd12ffee5e54d0e9a9afb83c5069b3 (diff)
downloadgo-schwift-735c7c4465a77d2953e9cb1328284e754f797db7.tar.gz
apparently having a private member is not enough
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(),