-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Jetty version Jetty 9.4.31
Java version 14.0.2
OS type/version Mac OS
Description
This is either a bug with the documentation or the implementation. Theses are the comments in HTTPConfiguration.java: https://github.com/eclipse/jetty.project/blob/jetty-10.0.x/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConfiguration.java#L401-L422 .
The documentation says that these control "the maximum size in bytes of the ... header." MDN defines a header as ONE key-value pair - i.e. just one Header: Value.
Unfortunately in Jetty, these configuration options actually control the size of the HTTP Header "Area" (not sure what to call it). Setting either of these controls the total length of ALL the (request/response) headers, not just the maximum of one header. I'm not sure if that's intentional, but if it is, it would be great to improve the documentation to say that it's the total header length, not a single header length.