mirror of
https://github.com/gnh1201/caterpillar.git
synced 2024-11-26 15:31:45 +00:00
Update server.py
This commit is contained in:
parent
8fd2b699c7
commit
e3e1dc63a9
|
@ -173,7 +173,7 @@ def proxy_check_filtered(data, webserver, port, scheme, method, url):
|
|||
data_length = len(data)
|
||||
text = data.decode(client_encoding, errors='ignore')
|
||||
error_rate = (data_length - len(text)) / data_length
|
||||
if error_rate > 0.9:
|
||||
if error_rate > 0.9: # it is a binary data
|
||||
return False
|
||||
|
||||
# check ID with K-Anonymity strategy
|
||||
|
|
Loading…
Reference in New Issue
Block a user