Skip to content
Snippets Groups Projects
Commit e9a75fbe authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

fix content-type of host-meta, which ultimately repairs the local testing...

fix content-type of host-meta, which ultimately repairs the local testing setup (substitution is not performed on stuff that isn't text)
parent 6d779559
No related branches found
No related tags found
No related merge requests found
......@@ -64,4 +64,12 @@ exports.setup = function(server) {
}));
server.use(handler);
// a tweak to get the content type of host-meta correct
server.use(function(req, resp, next) {
if (req.url === '/.well-known/host-meta') {
resp.setHeader('content-type', 'text/xml');
}
next();
});
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment