Convert to bytes

master
Bob Mottram 2019-08-30 17:48:49 +01:00
parent a91263c208
commit 425ffd84e2
1 changed files with 1 additions and 1 deletions

View File

@ -1843,7 +1843,7 @@ class PubServer(BaseHTTPRequestHandler):
if filename and imageLocation>-1: if filename and imageLocation>-1:
# locate the beginning of the image, after any # locate the beginning of the image, after any
# carriage returns # carriage returns
startPos=imageLocation+len(searchStr) startPos=imageLocation+len(searchStr.encode('utf-8'))
for offset in range(1,8): for offset in range(1,8):
if postBytes[startPos+offset]!=10: if postBytes[startPos+offset]!=10:
if postBytes[startPos+offset]!=13: if postBytes[startPos+offset]!=13: