mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
1087afc445
commit
c178105164
|
@ -11062,6 +11062,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def do_GET(self):
|
def do_GET(self):
|
||||||
|
print('actor test 0: ' + self.path)
|
||||||
callingDomain = self.server.domainFull
|
callingDomain = self.server.domainFull
|
||||||
if self.headers.get('Host'):
|
if self.headers.get('Host'):
|
||||||
callingDomain = decodedHost(self.headers['Host'])
|
callingDomain = decodedHost(self.headers['Host'])
|
||||||
|
@ -11079,10 +11080,12 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self._400()
|
self._400()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
print('actor test 1: ' + self.path)
|
||||||
if self._blockedUserAgent(callingDomain):
|
if self._blockedUserAgent(callingDomain):
|
||||||
self._400()
|
self._400()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
print('actor test 2: ' + self.path)
|
||||||
GETstartTime = time.time()
|
GETstartTime = time.time()
|
||||||
GETtimings = {}
|
GETtimings = {}
|
||||||
|
|
||||||
|
@ -11097,6 +11100,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self._benchmarkGETtimings(GETstartTime, GETtimings,
|
self._benchmarkGETtimings(GETstartTime, GETtimings,
|
||||||
'start', '_nodeinfo[callingDomain]')
|
'start', '_nodeinfo[callingDomain]')
|
||||||
|
|
||||||
|
print('actor test 3: ' + self.path)
|
||||||
if self.path == '/logout':
|
if self.path == '/logout':
|
||||||
if not self.server.newsInstance:
|
if not self.server.newsInstance:
|
||||||
msg = \
|
msg = \
|
||||||
|
@ -11153,13 +11157,13 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'/users/' + nickname + '/statuses/')
|
'/users/' + nickname + '/statuses/')
|
||||||
|
|
||||||
# instance actor
|
# instance actor
|
||||||
print('actor test 1: ' + self.path)
|
print('actor test 4: ' + self.path)
|
||||||
if self.path == '/actor' or \
|
if self.path == '/actor' or \
|
||||||
self.path == '/users/actor' or \
|
self.path == '/users/actor' or \
|
||||||
self.path == '/Actor' or \
|
self.path == '/Actor' or \
|
||||||
self.path == '/users/Actor':
|
self.path == '/users/Actor':
|
||||||
self.path = '/users/inbox'
|
self.path = '/users/inbox'
|
||||||
print('actor test 2: ' + self.path)
|
print('actor test 4: ' + self.path)
|
||||||
if self._showInstanceActor(callingDomain, self.path,
|
if self._showInstanceActor(callingDomain, self.path,
|
||||||
self.server.baseDir,
|
self.server.baseDir,
|
||||||
self.server.httpPrefix,
|
self.server.httpPrefix,
|
||||||
|
|
Loading…
Reference in New Issue