Update fediverse.py

This commit is contained in:
Namhyeon Go 2024-02-28 15:33:46 +09:00 committed by GitHub
parent bb8cc5f1da
commit e94674c5d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,9 +39,7 @@ class Fediverse(Filter):
self.known_words = [word.strip() for word in words if len(word.strip()) > 3]
print ("[*] Data loaded to use KnownWords4 strategy")
def test(self, data):
filtered = False
def test(self, filtered, data, webserver, port, scheme, method, url):
# prevent cache confusing
if data.find(b'<title>Welcome to nginx!</title>') > -1:
return True