diff --git a/src/IncomingMessage.ts b/src/IncomingMessage.ts index 965812d..fc5e733 100644 --- a/src/IncomingMessage.ts +++ b/src/IncomingMessage.ts @@ -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 });