Skip to content

DeprecationWarning: OutgoingMessage.prototype._headers is deprecated #68

Open
@stevenjoezhang

Description

@stevenjoezhang
% 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions