mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-03-11 16:35:14 +00:00
Update server.py
This commit is contained in:
parent
737033f36b
commit
c29de5e44a
|
@ -208,6 +208,8 @@ def proxy_server(webserver, port, scheme, method, url, conn, addr, data):
|
|||
# Wait to see if there is more data to transmit
|
||||
def sendall(sock, conn, data):
|
||||
# send first chuck
|
||||
if proxy_check_filtered(data, webserver, port, scheme, method, url):
|
||||
raise Exception("Filtered request")
|
||||
sock.send(data)
|
||||
if len(data) < buffer_size:
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue
Block a user