Skip to content

Deprecated property in response.js (+ easy fix) #382

@franz-josef-kaiser

Description

@franz-josef-kaiser

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions