> @@ -137,6 +139,10 @@ public void 
> addEntityForContent(HttpEntityEnclosingRequest apacheRequest, Payloa
>        } else if (payload instanceof FilePayload) {
>           apacheRequest.setEntity(new FileEntity((File) 
> payload.getRawContent(), payload.getContentMetadata()
>                 .getContentType()));
> +      } else if (payload instanceof ByteArrayPayload) {

@demobox FYI, this is what I was referring to. When we only accept ByteSource, 
what it is wrapping is opaque. Drivers like this can no longer more efficiently 
send a string, byte array, etc. This code was pulled out when ByteSource 
support was adding. This pull request puts it back.

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

Reply via email to