From 0939d70557c359a9af8f67811cdf273fa7ea83b9 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Fri, 16 Feb 2018 17:19:50 +0100 Subject: add object lifecycle testcase --- object.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'object.go') diff --git a/object.go b/object.go index 3f1ebe0..fec812a 100644 --- a/object.go +++ b/object.go @@ -88,10 +88,12 @@ func (o *Object) Headers() (ObjectHeaders, error) { } resp, err := Request{ - Method: "HEAD", - ContainerName: o.c.name, - ObjectName: o.name, - ExpectStatusCodes: []int{204}, + Method: "HEAD", + ContainerName: o.c.name, + ObjectName: o.name, + //since Openstack LOVES to be inconsistent with everything (incl. itself), + //this returns 200 instead of 204 + ExpectStatusCodes: []int{200}, }.Do(o.c.a.client) if err != nil { return ObjectHeaders{}, err -- cgit v1.2.3