Skip to content

The size_hint in HttpBody can change behavior when making GET requests with bodies #2444

Open
@aturon

Description

@aturon

This is a subtle one! Bodies for GET requests are ignored, unless the HttpBody::size_hint provides an exact size, in which case they are transmitted. The size_hint should not affect behavior in this way, AIUI.

I was using the general Client::request API to pass through a request that happened to be a GET with a body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-bodyArea: body streaming.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions