Skip to content

doc: res.getHeaders return value wrong in docs #12885

Closed
@refack

Description

@refack
  • Version: 7
  • Platform: *
  • Subsystem: HTTP

Ref: https://github.com/nodejs/node/pull/12883/files#r115149721

      const headersCopy = res.getHeaders();
      assert.ok(headersCopy instanceof Object);

Fails with AssertionError [ERR_ASSERTION]: false == true
In contradiction to API https://nodejs.org/api/http.html#http_response_getheaders

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.httpIssues or PRs related to the http subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions