mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Merge pull request +16019 from c9/fix-firefox-xhr-errors
without content type firefox tries to parse xhr result as xml
This commit is contained in:
commit
10f781776f
3
plugins/node_modules/vfs-http-adapter/restful.js
generated
vendored
3
plugins/node_modules/vfs-http-adapter/restful.js
generated
vendored
@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user