diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2018-02-11 12:23:16 +0100 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2018-02-11 12:23:16 +0100 |
| commit | 403359114bf971f037e2737b43e2734a89df9f0a (patch) | |
| tree | 757c4a2008bb4dabc0f8072b6b357f58308065a7 /account.go | |
| parent | 9a8ec45e50647e134e5a6e14c3738d6627298b97 (diff) | |
| download | go-schwift-403359114bf971f037e2737b43e2734a89df9f0a.tar.gz | |
ensure that response body is drained
Diffstat (limited to 'account.go')
| -rw-r--r-- | account.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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() |
