From: Jérôme Benoit Date: Wed, 14 Feb 2024 09:50:22 +0000 (+0100) Subject: fix: fix exception at HTTP UI server authentication error X-Git-Tag: v1.2.37~57 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=915eeb3e12da345870a64f62e18a93aeb6e56688;p=e-mobility-charging-stations-simulator.git fix: fix exception at HTTP UI server authentication error Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ui-server/UIHttpServer.ts b/src/charging-station/ui-server/UIHttpServer.ts index eafea59a..bd10a684 100644 --- a/src/charging-station/ui-server/UIHttpServer.ts +++ b/src/charging-station/ui-server/UIHttpServer.ts @@ -95,7 +95,7 @@ export class UIHttpServer extends AbstractUIServer { 'WWW-Authenticate': 'Basic realm=users' }) .end(`${StatusCodes.UNAUTHORIZED} Unauthorized`) - .destroy() + res.destroy() req.destroy() } })