Skip to content

Commit 31def01

Browse files
authored
Increase default HTTP response header size (#519)
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
1 parent 53fa9ce commit 31def01

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ To run locally exploded web archive:
9494
--mimeTypes=ARG = define additional MIME type mappings. ARG would be EXT=MIMETYPE:EXT=MIMETYPE:...
9595
(e.g., xls=application/vnd.ms-excel:wmf=application/x-msmetafile)
9696
--requestHeaderSize=N = set the maximum size in bytes of the request header. Default is 8192.
97-
--responseHeaderSize=N = set the maximum size in bytes of the response header. Default is 8192.
97+
--responseHeaderSize=N = set the maximum size in bytes of the response header. Default is 32768.
9898
--maxParamCount=N = set the max number of parameters allowed in a form submission to protect
9999
against hash DoS attack (oCERT #2011-003). Default is 10000.
100100
--useJmx = Enable Jetty Jmx

src/main/java/winstone/cmdline/Option.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public static List<Option<?>> all(Class<?> clazz) {
9494
public static final OInt SESSION_TIMEOUT = integer("sessionTimeout", -1);
9595
public static final OInt SESSION_EVICTION = integer("sessionEviction", 1800);
9696
public static final OInt REQUEST_HEADER_SIZE = integer("requestHeaderSize", 8192); // default for jetty 9
97-
public static final OInt RESPONSE_HEADER_SIZE = integer("responseHeaderSize", 8192); // default for jetty 9
97+
public static final OInt RESPONSE_HEADER_SIZE = integer("responseHeaderSize", 32768);
9898
public static final OInt REQUEST_FORM_CONTENT_SIZE =
9999
integer("requestFormContentSize", -1); // no limit (compat with old winstone)
100100
public static final OBoolean HELP = bool("help", false);

src/main/resources/winstone/LocalStrings.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Launcher.UsageInstructions.Options=\
9393
\ --mimeTypes=ARG = define additional MIME type mappings. ARG would be EXT=MIMETYPE:EXT=MIMETYPE:...\n\
9494
\ (e.g., xls=application/vnd.ms-excel:wmf=application/x-msmetafile)\n\
9595
\ --requestHeaderSize=N = set the maximum size in bytes of the request header. Default is 8192.\n\
96-
\ --responseHeaderSize=N = set the maximum size in bytes of the response header. Default is 8192.\n\
96+
\ --responseHeaderSize=N = set the maximum size in bytes of the response header. Default is 32768.\n\
9797
\ --maxParamCount=N = set the max number of parameters allowed in a form submission to protect\n\
9898
\ against hash DoS attack (oCERT #2011-003). Default is 10000.\n\
9999
\ --useJmx = Enable Jetty Jmx\n\

0 commit comments

Comments
 (0)