on master help sign in
Remove redundant code (thanks @gregwebs)
commite2b43d3cce8a9adff1e24b87ff9782abf2a3d3d7 authorMichael Snoyman <michael@snoyman.com> dateWed 14 Jan 2015, 21:15 (12 years ago) parentbc4f855
1 file changed−1
wai-app-static/Network/Wai/Application/Static.hs−1
wai-app-static/Network/Wai/Application/Static.hs−1
@@ -108,7 +108,6 @@ serveFolder ss@StaticSettings {..} pieces req folder@Folder {..} =
108108 addTrailingSlash :: W.Request -> Maybe ByteString
109109 addTrailingSlash req
110110 | S8.null rp = Just "/"
111− | rp == "/" = Nothing
112111 | S8.last rp == '/' = Nothing
113112 | otherwise = Just $ S8.snoc rp '/'
114113 where