Implement AutoCloseable in SimpleHTTP util (#11060)
Co-authored-by: Stian Thorgersen <stianst@gmail.com>
This commit is contained in:
parent
f0397f33b4
commit
0e89f07d5a
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ public class SimpleHttp {
|
|||
return new UrlEncodedFormEntity(urlParameters, StandardCharsets.UTF_8);
|
||||
}
|
||||
|
||||
public static class Response {
|
||||
public static class Response implements AutoCloseable {
|
||||
|
||||
private final HttpResponse response;
|
||||
private int statusCode = -1;
|
||||
|
|
Loading…
Reference in a new issue