Skip to content
This repository was archived by the owner on Dec 18, 2020. It is now read-only.

Commit 229adf7

Browse files
committed
close response on list call
1 parent a816d02 commit 229adf7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
# limitations under the License.
1515
#
1616

17-
version=1.4.0
17+
version=1.4.1
1818
groupId=com.nike
1919
artifactId=vault-client

src/main/java/com/nike/vault/client/VaultClient.java

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ public VaultListResponse list(final String path) {
116116
final Response response = execute(url, HttpMethod.GET, null);
117117

118118
if (response.code() == HttpStatus.NOT_FOUND) {
119+
response.close();
119120
return new VaultListResponse();
120121
} else if (response.code() != HttpStatus.OK) {
121122
parseAndThrowErrorResponse(response);

0 commit comments

Comments
 (0)