mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-06 01:41:00 +00:00
Update server.py
This commit is contained in:
parent
24a48812b0
commit
46d77e8562
|
@ -142,9 +142,13 @@ def proxy_connect(webserver, conn):
|
||||||
def proxy_check_filtered(data, webserver, port, scheme, method, url):
|
def proxy_check_filtered(data, webserver, port, scheme, method, url):
|
||||||
filtered = False
|
filtered = False
|
||||||
|
|
||||||
|
# prevent cache confusing
|
||||||
|
if data.find(b'Welcome to nginx') > -1:
|
||||||
|
return True
|
||||||
|
|
||||||
# allowed conditions
|
# allowed conditions
|
||||||
if method == b'GET' or url.find(b'/api') > -1:
|
if method == b'GET' or url.find(b'/api') > -1:
|
||||||
return filtered
|
return False
|
||||||
|
|
||||||
# convert to text
|
# convert to text
|
||||||
text = ''
|
text = ''
|
||||||
|
|
Loading…
Reference in New Issue
Block a user