-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
HttpServerResponse.setDefaultEncoding() #14146
Copy link
Copy link
Closed
Labels
help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.
Metadata
Metadata
Assignees
Labels
help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.
The documentation of http.ServerResponse claims that it implements the interface of
stream.Writable, which includessetDefaultEncoding. However,ServerResponsedoes not implementsetDefaultEncoding.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.