forked from indymedia/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:
|
def _hasAccept(self, callingDomain: str) -> bool:
|
||||||
if self.headers.get('Accept') or callingDomain.endswith('.b32.i2p'):
|
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 True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue