From da410281426181286d544c83eb136ba23d232983 Mon Sep 17 00:00:00 2001 From: andrey-qlogic Date: Thu, 29 Nov 2018 10:37:33 +0000 Subject: [PATCH] 4107: Cleared response body. --- .../java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java | 1 + 1 file changed, 1 insertion(+) diff --git a/google-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java b/google-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java index 19c9324518d7..196780f0a1d3 100644 --- a/google-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java +++ b/google-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java @@ -685,6 +685,7 @@ public void write(String uploadId, byte[] toWrite, int toWriteOffset, long destO HttpResponse response = httpRequest.execute(); code = response.getStatusCode(); message = response.getStatusMessage(); + response.getContent().close(); } catch (HttpResponseException ex) { exception = ex; code = ex.getStatusCode();