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 /object.go | |
| parent | 9a8ec45e50647e134e5a6e14c3738d6627298b97 (diff) | |
| download | go-schwift-403359114bf971f037e2737b43e2734a89df9f0a.tar.gz | |
ensure that response body is drained
Diffstat (limited to 'object.go')
| -rw-r--r-- | object.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -143,6 +143,7 @@ func (o *Object) Upload(content io.Reader, headers ObjectHeaders, opts *RequestO Options: opts, Body: content, ExpectStatusCodes: []int{201}, + DrainResponseBody: true, }.Do(o.c.a.client) if err == nil { o.Invalidate() |
