summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jfr_playoff/remote.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/jfr_playoff/remote.py b/jfr_playoff/remote.py
index b918ea1..8f6f78f 100644
--- a/jfr_playoff/remote.py
+++ b/jfr_playoff/remote.py
@@ -18,10 +18,10 @@ class RemoteUrl:
encoding_match = re.search(
'content=".*;( )?charset=(.*?)"',
request.content, re.IGNORECASE)
- PlayoffLogger.get('remote').debug(
- 'Content encoding: %s',
- encoding_match.group(2))
if encoding_match:
+ PlayoffLogger.get('remote').debug(
+ 'Content encoding: %s',
+ encoding_match.group(2))
request.encoding = encoding_match.group(2)
cls.url_cache[url] = request.text
PlayoffLogger.get('remote').info(