We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ea7d83 commit 2321f1cCopy full SHA for 2321f1c
src/main/java/graphql/servlet/AbstractGraphQLHttpServlet.java
@@ -457,11 +457,12 @@ private boolean isBatchedQuery(InputStream inputStream) throws IOException {
457
return false;
458
}
459
460
+ final int BUFFER_SIZE = 128;
461
ByteArrayOutputStream result = new ByteArrayOutputStream();
- byte[] buffer = new byte[128];
462
+ byte[] buffer = new byte[BUFFER_SIZE];
463
int length;
464
- inputStream.mark(0);
465
+ inputStream.mark(BUFFER_SIZE);
466
while ((length = inputStream.read(buffer)) != -1) {
467
result.write(buffer, 0, length);
468
String chunk = result.toString();
0 commit comments