Minor patch
Some checks are pending
/ build (macos-latest, 3.8) (push) Waiting to run
/ build (ubuntu-latest, pypy-2.7) (push) Waiting to run
/ build (windows-latest, 3.14) (push) Waiting to run

This commit is contained in:
Miroslav Štampar 2026-06-04 21:58:15 +02:00
parent cfd9309be4
commit 85a71c2b49
3 changed files with 4 additions and 4 deletions

View file

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