Make HTTPServer ignore responses that cannot be sent
This commit is contained in:
@@ -128,7 +128,9 @@ export class HTTPServer extends Unit {
|
||||
await error(new ErrorWithContext('Unknown error occurred.', { e }))
|
||||
}
|
||||
|
||||
await extolloReq.response.send()
|
||||
if ( extolloReq.response.canSend() ) {
|
||||
await extolloReq.response.send()
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user