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) {
47
47
}
48
48
49
49
/**
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 .
51
51
*
52
52
* @param chunkedBufferSize the buffer size used to read a request body that was encoded using 'chunked' transfer-encoding.
53
53
* @return This.
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public class HTTPServerConfiguration implements Configurable<HTTPServerConfigura
34
34
35
35
private Path baseDir = Path .of ("" );
36
36
37
- private int chunkedBufferSize = 4 * 1024 ; // 4k bytes
37
+ private int chunkedBufferSize = 2 * 1024 ; // 2k bytes
38
38
39
39
private boolean compressByDefault = true ;
40
40
@@ -91,6 +91,9 @@ public Path getBaseDir() {
91
91
return baseDir ;
92
92
}
93
93
94
+ /**
95
+ * @return the length of the buffer used to parse a chunked request.
96
+ */
94
97
public int getChunkedBufferSize () {
95
98
return chunkedBufferSize ;
96
99
}
You can’t perform that action at this time.
0 commit comments