mirror of https://gitlab.com/bashrc2/epicyon
Set a dummy Accept if it doesn't exist
parent
b3791e703d
commit
505e4116eb
|
@ -593,6 +593,10 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
|
||||
def _hasAccept(self, callingDomain: str) -> bool:
|
||||
if self.headers.get('Accept') or callingDomain.endswith('.b32.i2p'):
|
||||
if not self.headers.get('Accept'):
|
||||
self.headers['Accept'] = \
|
||||
'text/html,application/xhtml+xml,' \
|
||||
'application/xml;q=0.9,image/webp,*/*;q=0.8'
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in New Issue