This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-graphql-core.git
The following commit(s) were added to refs/heads/master by this push:
new 91b0817 SLING-9626 - do not call flush(), Writer is closed already
91b0817 is described below
commit 91b08175eb52b43c6c302a0355136f93b417669c
Author: Bertrand Delacretaz <[email protected]>
AuthorDate: Tue Aug 4 12:19:48 2020 +0200
SLING-9626 - do not call flush(), Writer is closed already
---
.../java/org/apache/sling/graphql/core/servlet/GraphQLServlet.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git
a/src/main/java/org/apache/sling/graphql/core/servlet/GraphQLServlet.java
b/src/main/java/org/apache/sling/graphql/core/servlet/GraphQLServlet.java
index 5d4a68a..cc424b2 100644
--- a/src/main/java/org/apache/sling/graphql/core/servlet/GraphQLServlet.java
+++ b/src/main/java/org/apache/sling/graphql/core/servlet/GraphQLServlet.java
@@ -132,9 +132,7 @@ public class GraphQLServlet extends SlingAllMethodsServlet {
jsonSerializer.sendJSON(response.getWriter(), result);
} catch(Exception ex) {
throw new IOException(ex);
- } finally {
- response.getWriter().flush();
}
}
-}
\ No newline at end of file
+}