Close closeable
@@ -968,8 +968,10 @@ public class ApplicationApiHandler extends AuditLoggingRequestHandler {
return new HttpResponse(200) {
@Override
public void render(OutputStream outputStream) throws IOException {
+ try (logStream) {
logStream.transferTo(outputStream);
}
+ }
};
}
