main
Bob Mottram 2020-06-28 22:30:02 +01:00
parent 154ffff1fe
commit a8532aa996
1 changed files with 8 additions and 6 deletions

View File

@ -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()
followingListHtml = '<html><body>' print('followingList: ' + str(followingList))
for followingAddress in followingList: if followingList:
followingListHtml += '<h3>' + followingAddress + '</h3>' followingListHtml = '<html><body>'
followingListHtml += '</body></html>' for followingAddress in followingList:
msg = followingListHtml.encode('utf-8') followingListHtml += '<h3>' + followingAddress + '</h3>'
followingListHtml += '</body></html>'
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'):