fix: fix exception at HTTP UI server authentication error
[e-mobility-charging-stations-simulator.git] / 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()
       }
     })