revised syntax getting date property

This commit is contained in:
Adrian Cole 2011-01-26 18:15:45 -08:00
parent f55a978668
commit 23d156ded9
1 changed files with 1 additions and 1 deletions

View File

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