Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Commit d84c827

Browse files
committed
fix(restify): set a sane max param length value for restify
1 parent 4415850 commit d84c827

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

db-server/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ function createServer(db) {
5050
const api = restify.createServer({
5151
formatters: {
5252
'application/json; q=0.9': safeJsonFormatter
53-
}
53+
},
54+
maxParamLength: 256
5455
})
5556

5657
api.use(restify.plugins.bodyParser())

0 commit comments

Comments
 (0)