Skip to content

Commit

Permalink
hopefully fixed Haddock parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlix committed May 26, 2024
1 parent 4ee333c commit eec3530
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions wai-extra/Network/Wai/Middleware/ValidateHeaders.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
--
-- 'validateHeadersMiddleware' enforces these constraints for response headers by responding with a 500 Internal Server Error when an offending character is present. This is meant to catch programmer errors early on and reduce attack surface.
module Network.Wai.Middleware.ValidateHeaders
-- * Middleware
( validateHeadersMiddleware
-- * Settings
( -- * Middleware
validateHeadersMiddleware
-- * Settings
, ValidateHeadersSettings (..)
, defaultValidateHeadersSettings
-- * Types
-- * Types
, InvalidHeader (..)
, InvalidHeaderReason (..)
) where
Expand Down Expand Up @@ -39,7 +39,7 @@ validateHeadersMiddleware settings app req respond =
Nothing -> respond response

-- | Configuration for 'validateHeadersMiddleware'.
--
--
-- @since 3.1.15
data ValidateHeadersSettings = ValidateHeadersSettings
-- | Called when an invalid header is present.
Expand Down Expand Up @@ -123,7 +123,7 @@ invalidHeaderResponse (InvalidHeader (headerName, headerValue) reason) =
, "In header '"
, BSL.fromStrict $ original headerName
, "' with value '"
, BSL.fromStrict $ headerValue
, BSL.fromStrict headerValue
, "': "
, showReason reason
, "\nYou are seeing this error message because validateHeadersMiddleware is enabled."
Expand Down

0 comments on commit eec3530

Please sign in to comment.