Skip to content

Commit 0a740f1

Browse files
authored
Clarify what request-header-size and response-header-size mean
Jetty's config options are for the PROTOCOL header, not a single Field: Value pair. So these options control the sum of all headers and status lines.
1 parent 99ece0b commit 0a740f1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ring-jetty-adapter/src/ring/adapter/jetty.clj

+4-2
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,10 @@
203203
:need,:want or :none (defaults to :none)
204204
:send-date-header? - add a date header to the response (default true)
205205
:output-buffer-size - the response body buffer size (default 32768)
206-
:request-header-size - the maximum size of a request header (default 8192)
207-
:response-header-size - the maximum size of a response header (default 8192)
206+
:request-header-size - the maximum size of the request line and headers
207+
(i.e. the request protocol header) (default 8192)
208+
:response-header-size - the maximum size of the response line and headers
209+
(i.e. the response protocol header) (default 8192)
208210
:send-server-version? - add Server header to HTTP response (default true)"
209211
[handler options]
210212
(let [server (create-server (dissoc options :configurator))]

0 commit comments

Comments
 (0)