http-party / http-server

a simple zero-configuration command-line http server
MIT License
13.58k stars 1.49k forks source link

[DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated #799

Open andrewcrook opened 2 years ago

andrewcrook commented 2 years ago

[DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

Environment Versions

  1. OS Type: macOS 12.2.1
  2. Node version: $ node --version. : v17.6.0
  3. http-server version: $ http-server --version: v14.1.0

Steps to reproduce

just run and browse

Expected result

no node errors or warnings

Actual result

(node:19684) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)
jkthinksmart commented 2 years ago

Seems like it's caused by an old axios version, which is one of the deps?

[2022-05-17T11:14:08.856Z] "HEAD /" "axios/0.21.4" (node:661) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

zbynek commented 2 years ago

This is duplicate of https://github.com/http-party/http-server/issues/537 -- see https://github.com/http-party/http-server/issues/537#issuecomment-931855399 for more details.

github-actions[bot] commented 1 year ago

This issue has been inactive for 180 days