on master help sign in
Add that maximum header size setting applies to HTTP/1.x
7553bd4Ole
warp/Network/Wai/Handler/Warp.hs+1−1
@@ -437,7 +437,7 @@ setGracefulShutdownTimeout :: Maybe Int
437 -> Settings -> Settings
437 -> Settings -> Settings
438setGracefulShutdownTimeout time y = y { settingsGracefulShutdownTimeout = time }
438setGracefulShutdownTimeout time y = y { settingsGracefulShutdownTimeout = time }
439
439
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.
441--
441--
442-- Since 3.3.8
442-- Since 3.3.8
443setMaxTotalHeaderLength :: Int -> Settings -> Settings
443setMaxTotalHeaderLength :: Int -> Settings -> Settings
warp/Network/Wai/Handler/Warp/Settings.hs+1−1
@@ -129,7 +129,7 @@ data Settings = Settings
129 --
129 --
130 -- Since 3.3.5
130 -- Since 3.3.5
131 , settingsMaxTotalHeaderLength :: Int
131 , 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.
133 --
133 --
134 -- Since 3.3.8
134 -- Since 3.3.8
135 }
135 }