aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2018-02-11 12:23:16 +0100
committerStefan Majewsky <majewsky@gmx.net>2018-02-11 12:23:16 +0100
commit403359114bf971f037e2737b43e2734a89df9f0a (patch)
tree757c4a2008bb4dabc0f8072b6b357f58308065a7 /account.go
parent9a8ec45e50647e134e5a6e14c3738d6627298b97 (diff)
downloadgo-schwift-403359114bf971f037e2737b43e2734a89df9f0a.tar.gz
ensure that response body is drained
Diffstat (limited to 'account.go')
-rw-r--r--account.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/account.go b/account.go
index 8193cb6..bbca9c5 100644
--- a/account.go
+++ b/account.go
@@ -143,6 +143,7 @@ func (a *Account) Create(headers AccountHeaders, opts *RequestOptions) error {
Headers: headersToHTTP(headers),
Options: opts,
ExpectStatusCodes: []int{201, 202},
+ DrainResponseBody: true,
}.Do(a.client)
if err == nil {
a.Invalidate()