mirror of https://github.com/apache/jclouds.git
Consistently quote ETags in comparisons
Addresses integration test regression in
25f4807df8
.
This commit is contained in:
parent
25f4807df8
commit
4ce357ba69
|
@ -630,11 +630,11 @@ public final class LocalBlobStore implements BlobStore {
|
|||
|
||||
if (options != null) {
|
||||
if (options.getIfMatch() != null) {
|
||||
if (!maybeQuoteETag(blob.getMetadata().getETag()).equals(options.getIfMatch()))
|
||||
if (!maybeQuoteETag(blob.getMetadata().getETag()).equals(maybeQuoteETag(options.getIfMatch())))
|
||||
throw returnResponseException(412);
|
||||
}
|
||||
if (options.getIfNoneMatch() != null) {
|
||||
if (maybeQuoteETag(blob.getMetadata().getETag()).equals(options.getIfNoneMatch()))
|
||||
if (maybeQuoteETag(blob.getMetadata().getETag()).equals(maybeQuoteETag(options.getIfNoneMatch())))
|
||||
throw returnResponseException(304);
|
||||
}
|
||||
if (options.getIfModifiedSince() != null) {
|
||||
|
|
Loading…
Reference in New Issue