>              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);
> +               }

I don't want to limit this fix to JRE​. It is a java api level thing.

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

Reply via email to