Skip to content
This repository was archived by the owner on May 8, 2020. It is now read-only.
This repository was archived by the owner on May 8, 2020. It is now read-only.

Response.buffer() return str rather than [bytes] #289

@Yang-z

Description

@Yang-z

When I try to get raw data of response body, the buffer() always returns data in the form of 'str'.
This is not what the API Reference says:
buffer() → Awaitable[bytes]

The body data in my case is 'amf', so I try to encode the 'str' data before pass it to a 'amf' parser(such as py3Amf), but the result is unresovable. Then I try to catch 'amf' data by Charles, and find that the binary data generated by res.buffer().encode() is differ from that catched by Charles. (Charles gives the right 'amf' data in binary, which is parsable.)

Please help.

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