kopia lustrzana https://github.com/c9/core
without content type firefox tries to parse xhr result as xml
rodzic
e5b4b23008
commit
2b33405af4
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
Ładowanie…
Reference in New Issue