Trivial update#

This commit is contained in:
Miroslav Stampar
2018-01-31 10:50:34 +01:00
parent 30f8c30d6a
commit 31fa7f6c94
8 changed files with 22 additions and 22 deletions

View File

@@ -180,7 +180,7 @@ class Response:
"size": len(self.content or "")
}
binary = set(['\0', '\1'])
binary = {'\0', '\1'}
if any(c in binary for c in self.content):
content["encoding"] = "base64"
content["text"] = base64.b64encode(self.content)