mirror of https://gitlab.com/bashrc2/epicyon
More debug
parent
e311d61a6e
commit
b5bcb75c3c
|
@ -2636,7 +2636,10 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
This creates a thread to send the new post
|
||||
"""
|
||||
pageNumber=1
|
||||
if authorized and '/users/' in path and '?'+postType+'?' in path:
|
||||
if not (authorized and '/users/' in path and '?'+postType+'?' in path):
|
||||
print('Not receiving new post for '+path)
|
||||
return None
|
||||
|
||||
if '?page=' in path:
|
||||
pageNumberStr=path.split('?page=')[1]
|
||||
if '?' in pageNumberStr:
|
||||
|
@ -2662,6 +2665,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
headers={}
|
||||
for dictEntryName,headerLine in self.headers.items():
|
||||
headers[dictEntryName]=headerLine
|
||||
print('New post headers: '+str(headers))
|
||||
|
||||
print('Creating new post thread')
|
||||
self.server.newPostThread[newPostThreadName]= \
|
||||
|
@ -2671,7 +2675,6 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
print('Starting new post thread')
|
||||
self.server.newPostThread[newPostThreadName].start()
|
||||
return pageNumber
|
||||
return None
|
||||
|
||||
def do_POST(self):
|
||||
if not self.server.session:
|
||||
|
|
Loading…
Reference in New Issue