You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by Andrew Gaul <no...@github.com> on 2015/03/05 00:08:34 UTC
Re: [jclouds] add aws s3 signature v4 (#678)
> + HttpRequest.Builder requestBuilder,
> + String method,
> + URI endpoint,
> + Payload payload
> + ) {
> + InputStream payloadStream;
> + try {
> + payloadStream = usePayloadForQueryParameters(method, payload) ?
> + getQueryStringContent(endpoint)
> + : getPayloadContentWithoutQueryString(payload);
> + } catch (IOException e) {
> + throw new HttpException("Unable to open stream before calculate AWS4 signature", e);
> + }
> + String contentSha256 = base16().lowerCase().encode(hash(payloadStream));
> + try {
> + payloadStream.reset();
What happens when the payload is not repeatable?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/678/files#r25824362