DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
stevenjoezhang opened this issue · 1 comments
stevenjoezhang commented
% node --trace-deprecation /usr/local/bin/http-server
Starting up http-server, serving ./public
Available on:
http://127.0.0.1:8080
http://10.2.198.96:8080
Hit CTRL-C to stop the server
[2020-11-11T03:40:13.184Z] "GET /" "Mozilla/5.0"
(node:13803) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
at new module.exports (/usr/local/lib/node_modules/http-server/node_modules/union/lib/response-stream.js:50:60)
at new module.exports (/usr/local/lib/node_modules/http-server/node_modules/union/lib/routing-stream.js:30:17)
at Server.requestHandler (/usr/local/lib/node_modules/http-server/node_modules/union/lib/core.js:27:25)
at Server.emit (node:events:327:20)
at parserOnIncoming (node:_http_server:919:12)
at HTTPParser.parserOnHeadersComplete (node:_http_common:126:17)
Line 50 in b69c2c0
See also #64 http-party/http-server#799
lamweili commented
This issue can be closed by PR #64.
Ping @indexzero @jcrugzz