Skip to content

Commit

Permalink
Update server.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gnh1201 authored Feb 17, 2024
1 parent 24a4881 commit 46d77e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,13 @@ def proxy_connect(webserver, conn):
def proxy_check_filtered(data, webserver, port, scheme, method, url):
filtered = False

# prevent cache confusing
if data.find(b'Welcome to nginx') > -1:
return True

# allowed conditions
if method == b'GET' or url.find(b'/api') > -1:
return filtered
return False

# convert to text
text = ''
Expand Down

0 comments on commit 46d77e8

Please sign in to comment.