diff --git a/blobstore/src/main/java/org/jclouds/blobstore/config/LocalBlobStore.java b/blobstore/src/main/java/org/jclouds/blobstore/config/LocalBlobStore.java index 5d806aae1f..f1a49384b3 100644 --- a/blobstore/src/main/java/org/jclouds/blobstore/config/LocalBlobStore.java +++ b/blobstore/src/main/java/org/jclouds/blobstore/config/LocalBlobStore.java @@ -532,10 +532,10 @@ public final class LocalBlobStore implements BlobStore { String eTag = maybeQuoteETag(blob.getMetadata().getETag()); if (eTag != null) { - if (options.ifMatch() != null && !options.ifMatch().equals(eTag)) { + if (options.ifMatch() != null && !maybeQuoteETag(options.ifMatch()).equals(eTag)) { throw returnResponseException(412); } - if (options.ifNoneMatch() != null && options.ifNoneMatch().equals(eTag)) { + if (options.ifNoneMatch() != null && maybeQuoteETag(options.ifNoneMatch()).equals(eTag)) { throw returnResponseException(412); } }