mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-01 18:29:54 +00:00
Check that user agent exists
This commit is contained in:
1 parent
b6479903cf
commit
611a6da196
1 file changed
+3
@@ -396,6 +396,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||
"""Updates a dictionary of known crawlers accessing nodeinfo
|
||||
or the masto API
|
||||
"""
|
||||
if not uaStr:
|
||||
return
|
||||
|
||||
currTime = int(time.time())
|
||||
if self.server.knownCrawlers.get(uaStr):
|
||||
self.server.knownCrawlers[uaStr]['hits'] += 1
|
||||
|
||||
Reference in new issue
Block a user