Skip to content

Commit d9e2356

Browse files
committed
Update the max length to be 8192 to match common web server defaults
1 parent e26b2d1 commit d9e2356

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/tinystruct/handler/HttpStaticFileHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private static String sanitizeUri(String uri) {
108108
}
109109

110110
// Not allow too long string.
111-
if (uri.length() > 255) {
111+
if (uri.length() > 8192) {
112112
throw new IllegalArgumentException("Input too long");
113113
}
114114

0 commit comments

Comments
 (0)