stream/shared: use res.end() instead of destroy for closing response

This commit is contained in:
dumbmoron 2024-05-22 15:09:14 +00:00 committed by wukko
parent 89d9d555d1
commit aba1d80615

View file

@ -17,8 +17,11 @@ const serviceHeaders = {
}
export function closeResponse(res) {
if (!res.headersSent) res.sendStatus(500);
return res.destroy();
if (!res.headersSent) {
res.sendStatus(500);
}
return res.end();
}
export function getHeaders(service) {