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

Commit 647b80e

Browse files
author
Shane Tomlinson
authored
Merge pull request #352 from mozilla/fix-restify r=@shane-tomlinson
fix(restify): set a sane max param length value for restify
2 parents 4415850 + bb78be2 commit 647b80e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

db-server/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ function createServer(db) {
5050
const api = restify.createServer({
5151
formatters: {
5252
'application/json; q=0.9': safeJsonFormatter
53-
}
53+
},
54+
// Auth-server accepts 255 unicode email address and sends them over has hex encoded values.
55+
// These values could be as large as 1530 characters.
56+
maxParamLength: 1530
5457
})
5558

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

0 commit comments

Comments
 (0)