Open jsha opened 7 years ago
This appears to be related to deflate encoding. Adding code to print the headers shows 'content-encoding': 'deflate',
, and piping the output to perl -MCompress::Zlib -e 'undef $/; print uncompress(<>)'
results in correct output.
Poking through the source it looks like this library doesn't yet support either gzip or deflate, so it should probably send a blank Accept-Encoding header.
The Twitter API uses HTTP/2, but trying to access it with node-http2 results in binary output rather than the expected textual output.
Steps to reproduce: