diff options
Diffstat (limited to 'container.go')
| -rw-r--r-- | container.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/container.go b/container.go index 7f5097f..f075d15 100644 --- a/container.go +++ b/container.go @@ -123,6 +123,7 @@ func (c *Container) Create(headers ContainerHeaders, opts *RequestOptions) error Headers: headersToHTTP(headers), Options: opts, ExpectStatusCodes: []int{201, 202}, + DrainResponseBody: true, }.Do(c.a.client) if err == nil { c.Invalidate() @@ -170,6 +171,7 @@ func (c *Container) EnsureExists() (*Container, error) { Method: "PUT", ContainerName: c.name, ExpectStatusCodes: []int{201, 202}, + DrainResponseBody: true, }.Do(c.a.client) return c, err } |
