From dcabd6697de31716168f35d6a0702d39b52bea16 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Sat, 28 Oct 2017 12:15:17 +0200 Subject: [PATCH] encode the cache content in utf8 --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 700f79b..b060f48 100644 --- a/server.py +++ b/server.py @@ -274,7 +274,7 @@ class Anonymous_Github: if not os.path.exists(os.path.dirname(content_cache_path)): os.makedirs(os.path.dirname(content_cache_path)) with open(content_cache_path, 'w') as f: - f.write(content) + f.write(content.encode('utf8')) return content def is_website(path, repository_config, g_repo):