-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrash.log
27 lines (22 loc) · 1.16 KB
/
crash.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Invalid header "User Agent" (hyphen is missing in the middle)
$ curl -v -H "User Agent: pinkytinky" http://localhost:4444
$ npm run proxy-server
> [email protected] proxy-server
> node proxy-server.js
Proxy server listening on port 4444
node:_http_outgoing:622
throw new ERR_INVALID_HTTP_TOKEN(label || 'Header name', name);
^
TypeError [ERR_INVALID_HTTP_TOKEN]: Header name must be a valid HTTP token ["user agent"]
at ClientRequest.setHeader (node:_http_outgoing:654:3)
at new ClientRequest (node:_http_client:286:14)
at Object.request (node:http:103:10)
at Array.stream (/home/tien/node-http-proxy-handle-invalid-header/node_modules/http-proxy/lib/http-proxy/passes/web-incoming.js:126:74)
at ProxyServer.<anonymous> (/home/tien/node-http-proxy-handle-invalid-header/node_modules/http-proxy/lib/http-proxy/index.js:81:21)
at Server.<anonymous> (/home/tien/node-http-proxy-handle-invalid-header/proxy-server.js:8:9)
at Server.emit (node:events:514:28)
at parserOnIncoming (node:_http_server:1143:12)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17) {
code: 'ERR_INVALID_HTTP_TOKEN'
}
Node.js v20.10.0