Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix Issue #47: using Response.apparent_encoding when Response.encoding is None #51

Merged
merged 1 commit into from
Sep 24, 2020

Conversation

cyprienc
Copy link
Contributor

Hi,

This is a proposed fix to Issue #47.
If the response's encoding is None, it calls the property apparent_encoding which relies on the chardet library to infer the encoding from the content of the response.

Cyprien

@cyprienc
Copy link
Contributor Author

Hi @btubbs,
This is ready for review.
Thanks,
CC

@btubbs
Copy link
Owner

btubbs commented Sep 24, 2020

Nice. Thank you!

@btubbs btubbs merged commit efd9193 into btubbs:master Sep 24, 2020
@cyprienc cyprienc mentioned this pull request Sep 24, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants