var roboHydraHeadDAV = require("../headdav"); exports.getBodyParts = function(conf) { return { heads: [ /* address-book home set */ new RoboHydraHeadDAV({ path: "/dav-invalid/addressbooks/user%40domain/", handler: function(req,res,next) { if (req.method == "PROPFIND" && req.rawBody.toString().match(/addressbook-description/)) { res.statusCode = 207; res.write('\\ \ \ /dav/addressbooks/user@domain/My Contacts:1.vcf/\ \ \ \ \ \ \ \ Address Book with dubious characters in path\ \ \ HTTP/1.1 200 OK\ \ \ \ HTTPS://example.com/user@domain/absolute-url.vcf\ \ \ \ \ \ \ \ Address Book with absolute URL\ \ \ HTTP/1.1 200 OK\ \ \ \ '); } } }) ] }; };