without content type firefox tries to parse xhr result as xml

This commit is contained in:
nightwing 2018-03-09 14:06:41 +04:00
parent e5b4b23008
commit 2b33405af4

View File

@ -315,7 +315,7 @@ module.exports = function setup(mount, vfs, mountOptions) {
command = vfs.symlink;
options.target = message.linkTo;
}
else if (message.metadata){
else if (message.metadata) {
command = vfs.metadata;
options.metadata = message.metadata;
}
@ -324,6 +324,7 @@ module.exports = function setup(mount, vfs, mountOptions) {
}
command(path, options, function (err, meta) {
if (err) return abort(err);
res.setHeader("Content-Type", "text/plain");
res.end();
});
});