Skip to content

Commit 7096e3e

Browse files
committed
Init configuration before performing the requests
1 parent e82a465 commit 7096e3e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/graphql/servlet/AbstractGraphQLHttpServlet.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public abstract class AbstractGraphQLHttpServlet extends HttpServlet implements
5454
private static final String[] MULTIPART_KEYS = new String[]{"operations", "graphql", "query"};
5555

5656
private GraphQLConfiguration configuration;
57-
57+
5858
/**
5959
* @deprecated override {@link #getConfiguration()} instead
6060
*/
@@ -322,11 +322,13 @@ private void doRequest(HttpServletRequest request, HttpServletResponse response,
322322

323323
@Override
324324
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
325+
this.configuration = getConfiguration();
325326
doRequestAsync(req, resp, getHandler);
326327
}
327328

328329
@Override
329330
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
331+
this.configuration = getConfiguration();
330332
doRequestAsync(req, resp, postHandler);
331333
}
332334

0 commit comments

Comments
 (0)