method not allowed

master
Bob Mottram 2019-07-03 21:32:30 +01:00
parent 503c423a18
commit 8462c65e8f
1 changed files with 7 additions and 3 deletions

View File

@ -132,10 +132,14 @@ class PubServer(BaseHTTPRequestHandler):
if authorize(self.server.baseDir,self.headers['Authorization']):
# TODO
print('inbox access not supported yet')
self.send_response(401)
self.send_response(405)
self.end_headers()
self.server.POSTbusy=False
return
self.send_response(405)
self.end_headers()
self.server.POSTbusy=False
return
# get outbox feed for a person
outboxFeed=personOutboxJson(self.server.baseDir,self.server.domain, \
@ -234,11 +238,11 @@ class PubServer(BaseHTTPRequestHandler):
if authorize(self.server.baseDir,self.headers['Authorization']):
# TODO
print('c2s posts not supported yet')
self.send_response(401)
self.send_response(405)
self.end_headers()
self.server.POSTbusy=False
return
self.send_response(401)
self.send_response(405)
self.end_headers()
self.server.POSTbusy=False
return