> + buffer.append(dateWithoutTimeStamp).append("/");
> + buffer.append(REGION).append("/");
> + buffer.append(SERVICE).append("/");
> + buffer.append(TERMINATION_STRING);
> + return buffer.toString();
> + }
> +
> + private Multimap<String, String> buildCanonicalizedHeadersMap(HttpRequest
> request) {
> + Multimap<String, String> headers = request.getHeaders();
> + SortedSetMultimap<String, String> canonicalizedHeaders =
> TreeMultimap.create();
> + for (Entry<String, String> header : headers.entries()) {
> + if (header.getKey() == null)
> + continue;
> + String key =
> header.getKey().toString().toLowerCase(Locale.getDefault());
> + // Ignore any headers that are not particularly interesting.
> + if (key.equalsIgnoreCase(HttpHeaders.CONTENT_TYPE) ||
> key.equalsIgnoreCase("Content-MD5")
Prefer ```HttpHeaders.CONTENT_MD5```.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/3/files#r12670149