> @@ -192,6 +194,28 @@ protected HttpURLConnection convert(HttpRequest request)
> throws IOException, Int
> return connection;
> }
>
> + /** Uses {@link HttpURLConnection#setFixedLengthStreamingMode(long)} if
> possible or throws if not. */
> + private synchronized void setFixedLengthStreamingMode(HttpURLConnection
> connection, long length) {
> + if (setFixedLengthStreamingMode != null) {
note: perfectly happy to make simplify this by not caching the method ref, if
desired.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/585/files#r19371893