Skip to content

Binary output when talking to Twitter API #240

Description

@jsha

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:

$ node node_modules/http2/example/client.js https://api.twitter.com/robots.txt
x�T�A
�0��}N1�Nhf�u��H�3�LȄ��
                       �����OtSzH��H� _+��J%Z��콪cؐ����k������e��aE��̸o��(�}
                                                                          �t3'�9���������*
$ curl https://api.twitter.com/robots.txt
# Used for Google app indexing. See https://developers.google.com/app-indexing/webmasters/server
User-agent: Googlebot
Disallow:

User-agent: *
Disallow: /

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions