fix: fix exception at HTTP UI server authentication error
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 14 Feb 2024 09:50:22 +0000 (10:50 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 14 Feb 2024 09:50:22 +0000 (10:50 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ui-server/UIHttpServer.ts

index eafea59ad3ec2398be9f1e4c2c526e829c7e98d2..bd10a6841e9c7e077007f94c13ba146d9d6cffe6 100644 (file)
@@ -95,7 +95,7 @@ export class UIHttpServer extends AbstractUIServer {
             'WWW-Authenticate': 'Basic realm=users'
           })
           .end(`${StatusCodes.UNAUTHORIZED} Unauthorized`)
-          .destroy()
+        res.destroy()
         req.destroy()
       }
     })