Don't report benchmarks if shared inbox is not enabled

main
Bob Mottram 2019-11-15 21:49:21 +00:00
parent 2c8d6721d2
commit d137800785
1 changed files with 0 additions and 2 deletions

View File

@ -922,7 +922,6 @@ class PubServer(BaseHTTPRequestHandler):
# if shared inbox is not enabled
if not self.server.enableSharedInbox:
self._503()
self._benchmarkGET(GETstartTime)
return
self.path='/inbox'
@ -3260,7 +3259,6 @@ class PubServer(BaseHTTPRequestHandler):
if self.path=='/inbox':
if not self.server.enableSharedInbox:
self._503()
self._benchmarkPOST(POSTstartTime)
return
cookie=None