Add that maximum header size setting applies to HTTP/1.x
commit7553bd41ea1ac6f5f9b491172b9524fcf54dacdc
authorOle <ole@vprsm.de>
dateMon 20 Jan 2020, 19:02 (7 years ago)
parentd05be30
warp/Network/Wai/Handler/Warp.hs+1−1
@@ -437,7 +437,7 @@ setGracefulShutdownTimeout :: Maybe Int
437437 -> Settings -> Settings
438438setGracefulShutdownTimeout time y = y { settingsGracefulShutdownTimeout = time }
439439
440−-- | Set the maximum header size that Warp will tolerate.
440+-- | Set the maximum header size that Warp will tolerate when using HTTP/1.x.
441441--
442442-- Since 3.3.8
443443setMaxTotalHeaderLength :: Int -> Settings -> Settings
warp/Network/Wai/Handler/Warp/Settings.hs+1−1
@@ -129,7 +129,7 @@ data Settings = Settings
129129 --
130130 -- Since 3.3.5
131131 , settingsMaxTotalHeaderLength :: Int
132− -- ^ Determines the maximum header size that Warp will tolerate.
132+ -- ^ Determines the maximum header size that Warp will tolerate when using HTTP/1.x.
133133 --
134134 -- Since 3.3.8
135135 }