Skip to content

Commit

Permalink
[#IOCOM-166] Fixed destroy handler with a NOOP (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldisaro authored Apr 17, 2023
1 parent 58d3fb9 commit d2e8810
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/IncomingMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ export default class IncomingMessage extends Readable {
...req, // Inherit
connection: createConnectionObject(context),
context: sanitizeContext(context), // Specific to Azure Function
destroy: NOOP, // we are not interested in new destroy implementation
headers: req.headers || {}, // Should always have a headers object
socket: { destroy: NOOP },
socket: { destroy: NOOP }, // we should not destroy the socket
// eslint-disable-next-line @typescript-eslint/no-explicit-any
url: (req as any).originalUrl
});
Expand Down

0 comments on commit d2e8810

Please sign in to comment.