Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit 9ad9243

Browse files
committed
return etag error if checksum and etag aren't equal
1 parent 433cc79 commit 9ad9243

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

openstack/objectstorage/v1/objects/requests.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ func Create(c *gophercloud.ServiceClient, containerName, objectName string, cont
240240
res.Err = err
241241
return res
242242
}
243+
res.Err = fmt.Errorf("Local checksum does not match API ETag header")
243244
}
244245

245246
return res

0 commit comments

Comments
 (0)