Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Commit

Permalink
bump header size for node
Browse files Browse the repository at this point in the history
Previously we were getting either a generic 400 error every once in awhile, or on my end, the more specific 431 error.

Node before had a default header size allowance of 80kb, but changed it to 8kb (nodejs/node#24731). This was causing issues for our app, and forcing us to clear cache regularly. For our purposes now, I've bumped that limit up to 40kb.
  • Loading branch information
katedee committed Jul 24, 2019
1 parent ea0ad76 commit 9aa3aad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"node": ">=10.15"
},
"scripts": {
"dev": "nodemon ./bin/www",
"dev": "nodemon --max-http-header-size=40000 ./bin/www",
"lint": "node_modules/eslint/bin/eslint.js config routes bin/www app.js",
"start": "node ./bin/www",
"start": "node --max-http-header-size=40000 ./bin/www",
"test": "node node_modules/jest/bin/jest.js"
},
"dependencies": {
Expand Down

0 comments on commit 9aa3aad

Please sign in to comment.