This will increase the maximum body-size in the nodejs environment to 1mb, to reflect the NATS maximum message size. The old limit was 100kb.
This commit is contained in:
@@ -93,10 +93,10 @@ function specialize(req, res) {
|
||||
// Request logger
|
||||
app.use(morgan('combined'))
|
||||
|
||||
app.use(bodyParser.urlencoded({ extended: false }));
|
||||
app.use(bodyParser.json());
|
||||
app.use(bodyParser.raw());
|
||||
app.use(bodyParser.text({ type : "text/*" }));
|
||||
app.use(bodyParser.urlencoded({ extended: false, limit: '1mb' }));
|
||||
app.use(bodyParser.json({limit: '1mb'}));
|
||||
app.use(bodyParser.raw({limit: '1mb'}));
|
||||
app.use(bodyParser.text({ type : "text/*", limit: '1mb' }));
|
||||
|
||||
app.post('/specialize', withEnsureGeneric(specialize));
|
||||
app.post('/v2/specialize', withEnsureGeneric(specializeV2));
|
||||
|
||||
Reference in New Issue
Block a user