aboutsummaryrefslogtreecommitdiff
path: root/object.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2018-02-16 17:19:50 +0100
committerStefan Majewsky <majewsky@gmx.net>2018-02-16 17:19:50 +0100
commit0939d70557c359a9af8f67811cdf273fa7ea83b9 (patch)
tree1000899566d6869a531e31507575a4cc39fae84d /object.go
parent2c30880ae2fe590c82d581461b23cf59ec2ff83b (diff)
downloadgo-schwift-0939d70557c359a9af8f67811cdf273fa7ea83b9.tar.gz
add object lifecycle testcase
Diffstat (limited to 'object.go')
-rw-r--r--object.go10
1 files changed, 6 insertions, 4 deletions
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