Try decode

main2
Bob Mottram 2019-11-09 18:34:17 +00:00
parent 9e9260f996
commit 4ae525589d
1 changed files with 5 additions and 1 deletions

View File

@ -2674,7 +2674,11 @@ class PubServer(BaseHTTPRequestHandler):
if line>2:
postValue+='\n'
postValue+=postLines[line]
fields[postKey]=postValue
fields[postKey]=postValue.decode()
if postKey=='message':
print('************************************************************************')
print('message: '+fields[postKey]+' *******************************************')
print('************************************************************************')
else:
# directly search the binary array for the beginning
# of an image