From 015fa8ddff76c52c9ba2579a4e5245f240ce7a3d Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 10 Oct 2018 15:06:30 +0100 Subject: [PATCH] .decode plaintext returns from utils.http.get_url --- src/utils/http.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/http.py b/src/utils/http.py index 5261e955..8ff4ac32 100644 --- a/src/utils/http.py +++ b/src/utils/http.py @@ -58,6 +58,7 @@ def get_url(url, method="GET", get_params={}, post_data=None, headers={}, except _json.decoder.JSONDecodeError as e: raise HTTPParsingException(str(e)) + data = data.decode(response.encoding) if code: return response.status_code, data else: