> @@ -171,8 +171,7 @@ private void appendPayloadMetadata(HttpRequest request, 
> StringBuilder buffer) {
>     void appendHttpHeaders(HttpRequest request, StringBuilder toSign) {
>        // Only the value is used, not the header
>        // name. If a request does not include the header, this is an empty 
> string.
> -      for (String header : new String[] { "Range" })
> -         
> toSign.append(HttpUtils.nullToEmpty(request.getHeaders().get(header)).toLowerCase()).append("\n");
> +      
> toSign.append(HttpUtils.nullToEmpty(request.getHeaders().get("Range")).toLowerCase()).append("\n");

Should this also be 
`(HttpUtils.nullToEmpty(request.getFirstHeaderOrNull("Range")).toLowerCase()`? 
Otherwise, how do we know we are getting the correct value for the "Range" 
header?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/163/files#r6680404

Reply via email to