I forgot important piece of code

This commit is contained in:
Sasha MOREL 2021-09-06 14:56:10 +02:00
parent aece55c786
commit 076610caf6
1 changed files with 4 additions and 0 deletions

4
sms.py
View File

@ -375,6 +375,10 @@ class Web_Service (BaseHTTPRequestHandler):
html_footer ()
).encode ('utf-8'))
return ()
if name is None:
name = number
else:
name = name + ' (' + number + ')'
self.send_response (200)
self.send_header ('Content-type', 'text/html; charset=UTF-8')
self.end_headers ()