Unverified Commit 9c0af6a7 authored by Guanghui Ren(任广辉)'s avatar Guanghui Ren(任广辉) Committed by GitHub
Browse files

Increase the limit of request body (#2031)

parent 91b43051
......@@ -34,7 +34,7 @@ export class NNIRestServer extends RestServer {
*/
protected registerRestHandler(): void {
this.app.use(express.static('static'));
this.app.use(bodyParser.json());
this.app.use(bodyParser.json({limit: '50mb'}));
this.app.use(this.API_ROOT_URL, createRestHandler(this));
this.app.use(this.LOGS_ROOT_URL, express.static(getLogDir()));
this.app.get('*', (req: express.Request, res: express.Response) => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment