Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test-memory: fix test by passing --max-http-header-size
The test broke because Node lowered the maximum header size to defend against large headers ( CVE-2018-12121 ). In the test, we do actually want to pass large headers, because all processing in CORS Anywhere is based on headers (the request body would just be forwarded to the destination server). The test failed intermittently with ECONNRESET or "socket hang up" because the server (under test) would close the socket upon receiving a request with too large request headers.
- Loading branch information