summaryrefslogtreecommitdiff
path: root/Main.hsc
diff options
context:
space:
mode:
Diffstat (limited to 'Main.hsc')
-rw-r--r--Main.hsc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Main.hsc b/Main.hsc
index ea3d50c..3c247de 100644
--- a/Main.hsc
+++ b/Main.hsc
@@ -323,7 +323,7 @@ main = do
to <- maybe 10 read <$> lookupEnv "TIMEOUT"
maybe (respond 504 "") pure =<< timeout (to * 10 ^ (6 :: Int))
(case (lookup "auth" ps, baCredentials =<< BS.pack <$> ha) of
- (Just "on", Just (l, p)) ->
+ (_, Just (l, p)) ->
serve xsltDir (connectdb (connString [("user", l), ("password", p)]))
ps
(Just "on", Nothing) -> requireAuth