Expect a user agent

main
Bob Mottram 2021-06-20 16:59:16 +01:00
parent 0068b2b8cd
commit f5930daf41
1 changed files with 2 additions and 0 deletions

View File

@ -460,6 +460,8 @@ class PubServer(BaseHTTPRequestHandler):
if self.headers.get('User-Agent'):
agentDomain = userAgentDomain(self.headers['User-Agent'],
self.server.debug)
else:
return True
blockedUA = False
if not agentDomain:
if self.server.userAgentDomainRequired: