mirror of https://gitlab.com/bashrc2/epicyon
Attempt NetSurf compatibility
parent
25c5bb4766
commit
c71c1b62be
|
@ -810,7 +810,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
return False
|
return False
|
||||||
if accept_str.startswith('*') or 'text/html' in accept_str:
|
if accept_str.startswith('*') or 'text/html' in accept_str:
|
||||||
if self.headers.get('User-Agent'):
|
if self.headers.get('User-Agent'):
|
||||||
if text_mode_browser(self.headers['User-Agent']):
|
ua_str = self.headers['User-Agent']
|
||||||
|
if text_mode_browser(ua_str) or 'NetSurf/' in ua_str:
|
||||||
return True
|
return True
|
||||||
if 'text/html' not in accept_str:
|
if 'text/html' not in accept_str:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue