Consistently quote ETags during comparison

Regression from e0a7ea7fdf.
This commit is contained in:
Andrew Gaul 2016-02-16 23:10:16 -08:00
parent e0a7ea7fdf
commit 2638ba4e69
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}