mirror of https://gitlab.com/bashrc2/epicyon
Check that user agent exists
parent
b6479903cf
commit
611a6da196
|
@ -396,6 +396,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
"""Updates a dictionary of known crawlers accessing nodeinfo
|
"""Updates a dictionary of known crawlers accessing nodeinfo
|
||||||
or the masto API
|
or the masto API
|
||||||
"""
|
"""
|
||||||
|
if not uaStr:
|
||||||
|
return
|
||||||
|
|
||||||
currTime = int(time.time())
|
currTime = int(time.time())
|
||||||
if self.server.knownCrawlers.get(uaStr):
|
if self.server.knownCrawlers.get(uaStr):
|
||||||
self.server.knownCrawlers[uaStr]['hits'] += 1
|
self.server.knownCrawlers[uaStr]['hits'] += 1
|
||||||
|
|
Loading…
Reference in New Issue