X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcharging-station%2Fui-server%2FUIHttpServer.ts;h=de4061106619d4985365d778ee959547fa080c6b;hb=92403944ed5cdbdd07faaa2da783682e1ea9a9dd;hp=9f423ce4157a61d5aa89f25e417dbf34765ad930;hpb=10d244c0aa14bb4839791eea27e1674d87ae4e20;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ui-server/UIHttpServer.ts b/src/charging-station/ui-server/UIHttpServer.ts index 9f423ce4..de406110 100644 --- a/src/charging-station/ui-server/UIHttpServer.ts +++ b/src/charging-station/ui-server/UIHttpServer.ts @@ -80,7 +80,7 @@ export default class UIHttpServer extends AbstractUIServer { const uuid = Utils.generateUUID(); this.responseHandlers.set(uuid, { procedureName, res }); try { - if (UIServiceUtils.isProtocolSupported(protocol, version) === false) { + if (UIServiceUtils.isProtocolAndVersionSupported(protocol, version) === false) { throw new BaseError(`Unsupported UI protocol version: '/${protocol}/${version}'`); } req.on('error', (error) => {