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