Skip to content

Commit cf39f7d

Browse files
committed
fix max url size issue
1 parent 5b305e7 commit cf39f7d

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ ARG VERSION_ARG
55
RUN apt-get update && apt-get install -y git
66
# install tardis-machine globally (exposes tardis-machine command)
77
RUN npm install --global --unsafe-perm tardis-machine@$VERSION_ARG
8+
9+
ENV UWS_HTTP_MAX_HEADERS_SIZE=20000
810
# run it
911
CMD tardis-machine --cache-dir=/.cache

bin/tardis-machine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env node
2-
2+
process.env.UWS_HTTP_MAX_HEADERS_SIZE = '20000'
33
const yargs = require('yargs')
44
const os = require('os')
55
const path = require('path')

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"scripts": {
1414
"build": "tsc",
1515
"precommit": "lint-staged",
16-
"test": "npm run build && jest --forceExit --runInBand",
16+
"test": "export UWS_HTTP_MAX_HEADERS_SIZE=20000 && npm run build && jest --forceExit --runInBand",
1717
"prepare": "npm run build",
1818
"format": "prettier --write .",
1919
"check-format": "prettier --check .",

0 commit comments

Comments
 (0)