mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
fix: emit 'finish' event when response is closed in transformProtocolRequest
This commit is contained in:
@@ -72,5 +72,9 @@ export async function transformProtocolRequest (request: ProtocolRequest) {
|
||||
},
|
||||
})
|
||||
|
||||
res.on('close', () => {
|
||||
res.emit('finish')
|
||||
})
|
||||
|
||||
return { req, res, out }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user