Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions wai-extra/Network/Wai/Middleware/RequestLogger/JSON.hs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ requestHeadersToJSON :: RequestHeaders -> Value
requestHeadersToJSON = toJSON . map hToJ where
-- Redact cookies
hToJ ("Cookie", _) = toJSON ("Cookie" :: Text, "-RDCT-" :: Text)
-- Redact tokens
hToJ ("Authorization", _) = toJSON ("Authorization" :: Text, "-RDCT-" :: Text)
hToJ hd = headerToJSON hd

responseHeadersToJSON :: [Header] -> Value
Expand Down
2 changes: 1 addition & 1 deletion wai-extra/wai-extra.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: wai-extra
Version: 3.0.29
Version: 3.1.0
Synopsis: Provides some basic WAI handlers and middleware.
description:
Provides basic WAI handler and middleware functionality:
Expand Down