forked from indymedia/epicyon
Reject if no Accept header
parent
e0ab020773
commit
ec672b81a9
|
@ -853,6 +853,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
print('GET Not authorized')
|
||||
|
||||
if not self.server.session:
|
||||
print('Starting new session')
|
||||
self.server.session= \
|
||||
createSession(self.server.useTor)
|
||||
|
||||
|
@ -861,6 +862,8 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
if self.headers.get('Accept'):
|
||||
if self._requestHTTP():
|
||||
htmlGET=True
|
||||
else:
|
||||
return
|
||||
|
||||
# treat shared inbox paths consistently
|
||||
if self.path=='/sharedInbox' or \
|
||||
|
|
Loading…
Reference in New Issue