#1132 nodejs environment, increase body size (#1149)

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:
JZinkl
2019-05-02 12:23:25 -07:00
committed by Soam Vasani
parent c88033fc0b
commit 84da480ff4
+4 -4
View File
@@ -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));