Consistently quote ETags in comparisons

Addresses integration test regression in
25f4807df8.
This commit is contained in:
Andrew Gaul 2015-11-19 19:00:34 -08:00
parent 25f4807df8
commit 4ce357ba69
1 changed files with 2 additions and 2 deletions

View File

@ -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) {