kopia lustrzana https://github.com/c9/core
Merge pull request +16019 from c9/fix-firefox-xhr-errors
without content type firefox tries to parse xhr result as xmlpull/483/merge
commit
10f781776f
|
@ -315,7 +315,7 @@ module.exports = function setup(mount, vfs, mountOptions) {
|
||||||
command = vfs.symlink;
|
command = vfs.symlink;
|
||||||
options.target = message.linkTo;
|
options.target = message.linkTo;
|
||||||
}
|
}
|
||||||
else if (message.metadata){
|
else if (message.metadata) {
|
||||||
command = vfs.metadata;
|
command = vfs.metadata;
|
||||||
options.metadata = message.metadata;
|
options.metadata = message.metadata;
|
||||||
}
|
}
|
||||||
|
@ -324,6 +324,7 @@ module.exports = function setup(mount, vfs, mountOptions) {
|
||||||
}
|
}
|
||||||
command(path, options, function (err, meta) {
|
command(path, options, function (err, meta) {
|
||||||
if (err) return abort(err);
|
if (err) return abort(err);
|
||||||
|
res.setHeader("Content-Type", "text/plain");
|
||||||
res.end();
|
res.end();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Ładowanie…
Reference in New Issue