You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node version 12 depracated OutgoingMessage.prototype._headers, which is used here in response.js L#18.
The fix is easy: Use getHeaders() instead:
this.statusCode = statusCode
- if (this._headers) {+ if (this.getHeaders()) {
// Slow-case: when progressive API and header fields are passed.
if (obj) {
You can inspect the full trace when running node with --trace-deprecation flag.
The text was updated successfully, but these errors were encountered:
franz-josef-kaiser
changed the title
Deprecated property in response
Deprecated property in response.js (+ easy fix)
Mar 22, 2021
Node version 12 depracated
OutgoingMessage.prototype._headers
, which is used here inresponse.js
L#18.The fix is easy: Use
getHeaders()
instead:You can inspect the full trace when running node with
--trace-deprecation
flag.The text was updated successfully, but these errors were encountered: