mirror of https://github.com/apache/jclouds.git
better error when last-modified header not found
This commit is contained in:
parent
ac56adc2e1
commit
a68640351f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue