Decode bytes

merge-requests/30/head
Bob Mottram 2021-02-25 15:08:09 +00:00
parent 823bac8258
commit eb9bee110a
1 changed files with 4 additions and 3 deletions

View File

@ -4045,11 +4045,12 @@ class PubServer(BaseHTTPRequestHandler):
' image or font could not be saved to ' + ' image or font could not be saved to ' +
postImageFilename) postImageFilename)
if '&previewAvatar=' in postBytes: postBytesStr = postBytes.decode('utf-8')
if '&previewAvatar=' in postBytesStr:
print('previewAvatar in postBytes') print('previewAvatar in postBytes')
if '&prevWelcomeScreen=' in postBytes: if '&prevWelcomeScreen=' in postBytesStr:
print('prevWelcomeScreen in postBytes') print('prevWelcomeScreen in postBytes')
if '&nextWelcomeScreen=' in postBytes: if '&nextWelcomeScreen=' in postBytesStr:
print('nextWelcomeScreen in postBytes') print('nextWelcomeScreen in postBytes')
# extract all of the text fields into a dict # extract all of the text fields into a dict