}
private requestListener(req: IncomingMessage, res: ServerResponse): void {
- this.authenticate(req, err => {
+ this.authenticate(req, (err) => {
if (err) {
res
.writeHead(StatusCodes.UNAUTHORIZED, {
throw new BaseError(`Unsupported UI protocol version: '${fullProtocol}'`);
}
this.registerProtocolVersionUIService(version);
- req.on('error', error => {
+ req.on('error', (error) => {
logger.error(
`${this.logPrefix(moduleName, 'requestListener.req.onerror')} Error on HTTP request:`,
error
if (req.method === 'POST') {
const bodyBuffer = [];
req
- .on('data', chunk => {
+ .on('data', (chunk) => {
bodyBuffer.push(chunk);
})
.on('end', () => {