File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/main/java/io/fusionauth/http/server Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ default T withBaseDir(Path baseDir) {
4747 }
4848
4949 /**
50- * Sets the buffer size for the chunked input stream. Defaults to 4k .
50+ * Sets the buffer size for the chunked input stream. Defaults to 2k .
5151 *
5252 * @param chunkedBufferSize the buffer size used to read a request body that was encoded using 'chunked' transfer-encoding.
5353 * @return This.
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public class HTTPServerConfiguration implements Configurable<HTTPServerConfigura
3434
3535 private Path baseDir = Path .of ("" );
3636
37- private int chunkedBufferSize = 4 * 1024 ; // 4k bytes
37+ private int chunkedBufferSize = 2 * 1024 ; // 2k bytes
3838
3939 private boolean compressByDefault = true ;
4040
@@ -91,6 +91,9 @@ public Path getBaseDir() {
9191 return baseDir ;
9292 }
9393
94+ /**
95+ * @return the length of the buffer used to parse a chunked request.
96+ */
9497 public int getChunkedBufferSize () {
9598 return chunkedBufferSize ;
9699 }
You can’t perform that action at this time.
0 commit comments