mirror of https://github.com/apache/jclouds.git
revised syntax getting date property
This commit is contained in:
parent
f55a978668
commit
23d156ded9
|
@ -179,7 +179,7 @@ public class SignRequest implements HttpRequestFilter {
|
|||
for (String header : new String[] { "Range" })
|
||||
toSign.append(utils.valueOrEmpty(request.getHeaders().get(header)).toLowerCase()).append("\n");
|
||||
// Standard HTTP header, in UTC format. Only the date value is used, not the header name.
|
||||
toSign.append(request.getHeaders().get(HttpHeaders.DATE).iterator().next()).append("\n");
|
||||
toSign.append(request.getFirstHeaderOrNull(HttpHeaders.DATE)).append("\n");
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
|
|
Loading…
Reference in New Issue