Reinstate falling back to self.text for JSON responses
Before adoption: this commit came in with the history the project adopted, so no landing records it.
A JSON response that has no encoding specified will be decoded with a detected UTF codec (compliant with the JSON RFC), but if that fails, we guessed wrong and need to fall back to charade character detection (via `self.text`). Kenneth removed this functionality (by accident?) in 1451ba0c6d395c41f86da35036fa361c3a41bc90, this reinstates it again and adds a log warning. Fixes #1674
authored by Martijn Pieters · committed by Martijn Pieters · parent 0b68037 · Browse files · 1 file+11 added−2 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+11 added−2 removed
- other:+11 added−2 removed