From 403359114bf971f037e2737b43e2734a89df9f0a Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Sun, 11 Feb 2018 12:23:16 +0100 Subject: ensure that response body is drained --- account.go | 1 + 1 file changed, 1 insertion(+) (limited to 'account.go') 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() -- cgit v1.2.3