>              if (length > 0) {
> -               connection.setRequestProperty(CONTENT_LENGTH, 
> String.valueOf(length));
> -               connection.setFixedLengthStreamingMode(length);
> +               connection.setRequestProperty(CONTENT_LENGTH, 
> length.toString());
> +               if (length <= Integer.MAX_VALUE) {
> +                  connection.setFixedLengthStreamingMode(length.intValue());
> +               } else {
> +                  setFixedLengthStreamingMode(connection, length);
> +               }

Ex. This is really about what this class supports. More of an interest wrt 
android (although still uploading >2GB in one shot is dubious and I'm really 
surprised we've still not started or landed the MPU tool!)

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

Reply via email to