Fix PSL download

This commit is contained in:
Sean Whalen
2018-09-16 23:05:52 -04:00
parent 2796fdd691
commit 9cf113abdc

View File

@@ -110,7 +110,7 @@ def _get_base_domain(domain):
__version__
)
headers = {"User-Agent": user_agent}
fresh_psl = requests.get(url, headers=headers).content
fresh_psl = requests.get(url, headers=headers).text
with open(psl_path, "w", encoding="utf-8") as fresh_psl_file:
fresh_psl_file.write(fresh_psl)