Check that message is returned

main
Bob Mottram 2020-06-27 23:25:00 +01:00
parent 6e46e28986
commit ab63c79bc6
1 changed files with 5 additions and 0 deletions

View File

@ -3377,6 +3377,11 @@ class PubServer(BaseHTTPRequestHandler):
shareDescription,
replyPageNumber,
nickname, self.server.domain).encode('utf-8')
if not msg:
print('Error replying to ' + inReplyToUrl)
self._404()
self.server.GETbusy = False
return
self._set_headers('text/html', len(msg),
cookie, callingDomain)
self._write(msg)