-- , ([\"unistd\"], 'Network.HTTP.Lucu.StaticFile.staticFile' \"\/usr\/include\/unistd.h\") -- \/unistd
-- ]
-- @
+--
+-- Note that the request path in an incoming HTTP request is always
+-- treated as an URI-encoded UTF-8 string.
mkResTree ∷ [ ([Text], ResourceDef) ] → ResTree
mkResTree = processRoot ∘ map (first canonicalisePath)
where
mapM_ (uncurry setHeader) $ fromHeaders $ aboHeaders abo
output $ LT.encodeUtf8 $ abortPage itrConfig itrRequest res abo
else
- when (cnfDumpTooLateAbortionToStderr itrConfig)
- $ hPutStrLn stderr $ show abo
+ do when (cnfDumpTooLateAbortionToStderr itrConfig)
+ $ hPutStrLn stderr $ show abo
+ atomically $ writeTVar itrWillClose True
runRes (driftTo Done) itr