Detecting text mode browsers

main
Bob Mottram 2022-07-13 12:54:43 +01:00
parent ffbde038bc
commit 0c73c639e9
1 changed files with 1 additions and 1 deletions

View File

@ -656,7 +656,7 @@ class PubServer(BaseHTTPRequestHandler):
if 'audio/' in accept_str:
if 'text/html' not in accept_str:
return False
if accept_str.startswith('*'):
if accept_str.startswith('*') or 'text/html' in accept_str:
if self.headers.get('User-Agent'):
if text_mode_browser(self.headers['User-Agent']):
return True