mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-06 18:01:07 +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
|
# Wait to see if there is more data to transmit
|
||||||
def sendall(sock, conn, data):
|
def sendall(sock, conn, data):
|
||||||
# send first chuck
|
# send first chuck
|
||||||
|
if proxy_check_filtered(data, webserver, port, scheme, method, url):
|
||||||
|
raise Exception("Filtered request")
|
||||||
sock.send(data)
|
sock.send(data)
|
||||||
if len(data) < buffer_size:
|
if len(data) < buffer_size:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue
Block a user