> + HttpResponse original = super.invoke(connection); > + HttpResponse.Builder<?> response = original.toBuilder(); > + > + if (hasPayload(original)) { > + // As we need to read the response body to determine if there are > + // errors, but we may need to process the body again later in the > + // response parsers if everything is OK, we buffer the body into an > + // InputStream we can reset > + InputStream in = null; > + InputStream originalInputStream = > original.getPayload().openStream(); > + > + if (originalInputStream instanceof ByteArrayInputStream) { > + in = originalInputStream; > + } else { > + try { > + in = new > ByteArrayInputStream(ByteStreams.toByteArray(originalInputStream));
Potential memory issue with big responses here? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/49/files#r9166125