Skip to content

Conversation

@Carglglz
Copy link
Contributor

@Carglglz Carglglz commented Jan 3, 2024

Fixes #781, #784, #788

Copy link

@bixb922 bixb922 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest not to specify "latin-1" as encoding. This parameter is AFAIK ignored for .encode(), and the encoding for JSON has to be UTF-8, which is the default for .encode()

- Fix binary data `Content-type` header and data `Content-Length`
  calculation.

- Fix query length when data is included.

- Fix `json` and `text` methods of `ClientResponse` to read
  `Content-Length` size

Signed-off-by: Carlos Gil <carlosgilglez@gmail.com>
@dpgeorge dpgeorge merged commit 56f514f into micropython:master Feb 8, 2024
@dpgeorge
Copy link
Member

dpgeorge commented Feb 8, 2024

Thanks for updating, now merged.

@Carglglz Carglglz deleted the aiohttp-fix branch February 8, 2024 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aiohttp converts data to string

3 participants