Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Only log response text if needed #26

Merged
merged 2 commits into from
Jun 30, 2015

Conversation

StevenMaude
Copy link
Contributor

Fixes #16.

Otherwise, this can result in chardet being used even if the debug statement isn't required which can be very slow on large responses (e.g. PDFs).

Fixes #16.

This can result in `chardet` being used even if the debug statement isn't
required which can be very slow on large responses (e.g. PDFs).
Explains why we check if it's really necessary to do this.
StevenMaude added a commit that referenced this pull request Jun 30, 2015
…-needed

Only log response text if needed
@StevenMaude StevenMaude merged commit 8cb3caf into master Jun 30, 2015
@StevenMaude StevenMaude deleted the only-do-debug-text-logging-if-needed branch June 30, 2015 10:37
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.

If server doesn't specify an encoding, requests always tries to guess it
1 participant