Skip to content

Commit 5ac4421

Browse files
committed
Keep check for disabled.
1 parent ba51ab7 commit 5ac4421

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/fusionauth/http/util/HTTPTools.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ public static void parseRequestPreamble(PushbackInputStream inputStream, int max
343343

344344
// index is the number of bytes we processed as part of the preamble
345345
premableLength += index;
346-
if (premableLength > maxRequestHeaderSize) {
346+
if (maxRequestHeaderSize !=-1 && premableLength > maxRequestHeaderSize) {
347347
throw new RequestHeadersTooLargeException(maxRequestHeaderSize, "The maximum size of the request header has been exceeded. The maximum size is [" + maxRequestHeaderSize + "] bytes.");
348348
}
349349
}

0 commit comments

Comments
 (0)