mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Fix issue #496: Cannot set headers after they are sent to the client on Node.js>10.1.0
This commit is contained in:
parent
d8917f33fd
commit
4b2e09dcfd
@ -138,7 +138,8 @@ function plugin(options, imports, register) {
|
||||
req.on("close", function() {
|
||||
done = true;
|
||||
cancel();
|
||||
res.json({}, 0, 500);
|
||||
if(!res.headersSent)
|
||||
res.json({}, 0, 500);
|
||||
});
|
||||
}
|
||||
]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user