diff --git a/server/lib/routers/webchat.ts b/server/lib/routers/webchat.ts index 732d74fd..b9eb3d48 100644 --- a/server/lib/routers/webchat.ts +++ b/server/lib/routers/webchat.ts @@ -93,9 +93,12 @@ async function initWebchatRouter (options: RegisterServerOptions): Promise { - httpBindRoute(req, res, next) - }) + router.all('/http-bind', + bodyParser.raw({ type: 'text/xml' }), + (req: Request, res: Response, next: NextFunction) => { + httpBindRoute(req, res, next) + } + ) return router }