HttpServerResponse.setDefaultEncoding()
- 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.