diff --git a/content/body.xqm b/content/body.xqm index 59ce592..4cd4c8a 100644 --- a/content/body.xqm +++ b/content/body.xqm @@ -58,7 +58,7 @@ declare function body:parse ($request as map(*)) { let $data := request:get-data() return typeswitch ($data) - case node() return $data/node() + case node() return $data default return parse-xml($data) (: Treat everything else as binary data :) default return request:get-data()