Check that message exists

main
Bob Mottram 2020-09-28 15:18:46 +01:00
parent 963aeb41a9
commit 622d62c26f
1 changed files with 7 additions and 4 deletions

View File

@ -5648,10 +5648,13 @@ class PubServer(BaseHTTPRequestHandler):
self._benchmarkGETtimings(GETstartTime, GETtimings,
'show status done',
'show inbox html')
msg = msg.encode('utf-8')
self._set_headers('text/html', len(msg),
cookie, callingDomain)
self._write(msg)
if msg:
msg = msg.encode('utf-8')
self._set_headers('text/html', len(msg),
cookie, callingDomain)
self._write(msg)
if GETstartTime:
self._benchmarkGETtimings(GETstartTime, GETtimings,
'show status done',