We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08d3b8e commit 48cc477Copy full SHA for 48cc477
Network/HTTP/ReverseProxy.hs
@@ -362,7 +362,7 @@ fixReqHeaders wps req =
362
fromSocket = (("X-Real-IP", S8.pack $ showSockAddr $ WAI.remoteHost req):)
363
fromForwardedFor = do
364
h <- lookup "x-forwarded-for" (WAI.requestHeaders req)
365
- listToMaybe $ map (TE.encodeUtf8 . T.strip) $ T.splitOn "," $ TE.decodeUtf8 h
+ listToMaybe $ map S8.strip $ S8.split ',' h
366
addXRealIP =
367
case wpsSetIpHeader wps of
368
SIHFromSocket -> fromSocket
0 commit comments