Skip to content

FastResponse: Detect response text encoding when no information is present on the response headers. - #2485

Merged
cyberw merged 3 commits into
locustio:masterfrom
MiltiadisKoutsokeras:issue_2482_detect_encoding
Nov 27, 2023
Merged

cyberw merged 3 commits into
locustio:masterfrom
MiltiadisKoutsokeras:issue_2482_detect_encoding

Conversation

@MiltiadisKoutsokeras

Copy link
Copy Markdown
Contributor

If no response headers are present or do not contain response encoding, use charset_normalizer.detect to detect the encoding from response content bytes.

…sponse encoding, use charset_normalizer.detect to detect the encoding from response content bytes
@cyberw

cyberw commented Nov 24, 2023

Copy link
Copy Markdown
Collaborator

I like this one the best, because it matches python-requests. Can you fix the typing issue? The regular tests are unstable at the moment, feel free to ignore that...

@cyberw
cyberw merged commit 687b34a into locustio:master Nov 27, 2023
@MiltiadisKoutsokeras

Copy link
Copy Markdown
Contributor Author

Thank you for accepting this. We will integrate it in our framework as soon as it is released.

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.

2 participants