better error when last-modified header not found

This commit is contained in:
Adrian Cole 2011-06-02 13:51:49 -07:00
parent ac56adc2e1
commit a68640351f
1 changed files with 1 additions and 2 deletions

View File

@ -94,8 +94,7 @@ public class ParseSystemAndUserMetadataFromHeaders implements Function<HttpRespo
if (lastModified == null) { if (lastModified == null) {
// scaleup-storage uses the wrong case for the last modified header // scaleup-storage uses the wrong case for the last modified header
if ((lastModified = from.getFirstHeaderOrNull("Last-modified")) == null) if ((lastModified = from.getFirstHeaderOrNull("Last-modified")) == null)
throw new HttpException(HttpHeaders.LAST_MODIFIED + " header not present in response: " throw new HttpException(HttpHeaders.LAST_MODIFIED + " header not present in response: " + from);
+ from.getStatusLine());
} }
// Walrus // Walrus