diff options
Diffstat (limited to 'libmproxy/utils.py')
-rw-r--r-- | libmproxy/utils.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libmproxy/utils.py b/libmproxy/utils.py index 97aa1e55..bcf9d141 100644 --- a/libmproxy/utils.py +++ b/libmproxy/utils.py @@ -58,11 +58,10 @@ def cleanBin(s): parts = [] for i in s: o = ord(i) - if o > 31 and o < 127: + if (o > 31 and o < 127) or i in "\n\r\t": parts.append(i) else: - if i not in "\n\r\t": - parts.append(".") + parts.append(".") return "".join(parts) |