Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarning: OutgoingMessage.prototype._headers is deprecated #68

Open
stevenjoezhang opened this issue Nov 11, 2020 · 1 comment

Comments

@stevenjoezhang
Copy link

stevenjoezhang commented Nov 11, 2020

% 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)

this._headers = this.response._headers = this.response._headers || {};

See also #64 http-party/http-server#799

@lamweili
Copy link

lamweili commented Jan 15, 2024

This issue can be closed by PR #64.

Ping @indexzero @jcrugzz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants