> +         public String apply(String input) {
> +            return input.toLowerCase();
> +         }
> +      }));
> +   }
> +
> +   private String sha256(byte[] unhashedBytes) {
> +      return Hashing.sha256().hashBytes(unhashedBytes).toString();
> +   }
> +
> +   private String buildHashedPayload(HttpRequest request) {
> +      String hashedPayload = "";
> +      try {
> +         byte[] unhashedBytes = request.getPayload() == null ? "".getBytes() 
> : ByteStreams.toByteArray(request
> +               .getPayload().getInput());
> +         hashedPayload = sha256(unhashedBytes);

Return the result of ```sha256``` instead of using the local variable.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/3/files#r12670350

Reply via email to