Skip to content

HttpServerResponse.setDefaultEncoding() #14146

Closed
@shaunc

Description

@shaunc
  • Version: 7.10.0
  • Platform: mac
  • Subsystem: http

The documentation of http.ServerResponse claims that it implements the interface of stream.Writable, which includes setDefaultEncoding. However, ServerResponse does not implement setDefaultEncoding.

I'm passing a server response to another library, which pipes an archiver.zip to it. The binary data is interpreted as utf8. I should be able to avoid this by setting the default encoding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIssues that need assistance from volunteers or PRs that need help to proceed.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