Skip to content

Commit 1452a2a

Browse files
committed
Pulling property names out of the request.
1 parent 07582bd commit 1452a2a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/Main.hs

+4-2
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,10 @@ doMkCol urlPath = do
332332
return ""
333333

334334
doPropFind::[String]->Element->Handler [(String, FSObject)]
335-
doPropFind urlPath body = do
336-
liftIO $ putStrLn $ "In doPropFind: " ++ show body
335+
doPropFind urlPath doc = do
336+
--TODO - check that the xml path element names are all correct....
337+
let propNames = [qName $ elName x | Elem x <- concat $ map elContent $ [x | Elem x <- elContent doc]]
338+
liftIO $ putStrLn $ "In doPropFind: " ++ show propNames
337339
let fullPath = "/" ++ intercalate "/" urlPath
338340

339341
maybeObject <- liftIO $ getObject fullPath

0 commit comments

Comments
 (0)