mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
154ffff1fe
commit
a8532aa996
|
@ -1651,13 +1651,15 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
with open(followingFilename, 'r') as followingFile:
|
with open(followingFilename, 'r') as followingFile:
|
||||||
msg = followingFile.read()
|
msg = followingFile.read()
|
||||||
followingList = msg.split('\n').sort()
|
followingList = msg.split('\n').sort()
|
||||||
|
print('followingList: ' + str(followingList))
|
||||||
|
if followingList:
|
||||||
followingListHtml = '<html><body>'
|
followingListHtml = '<html><body>'
|
||||||
for followingAddress in followingList:
|
for followingAddress in followingList:
|
||||||
followingListHtml += '<h3>' + followingAddress + '</h3>'
|
followingListHtml += '<h3>' + followingAddress + '</h3>'
|
||||||
followingListHtml += '</body></html>'
|
followingListHtml += '</body></html>'
|
||||||
msg = followingListHtml.encode('utf-8')
|
msg = followingListHtml
|
||||||
self._login_headers('text/html', len(msg), callingDomain)
|
self._login_headers('text/html', len(msg), callingDomain)
|
||||||
self._write(msg)
|
self._write(msg.encode('utf-8'))
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.path.startswith('/about'):
|
if self.path.startswith('/about'):
|
||||||
|
|
Loading…
Reference in New Issue