From 425ffd84e2c64b491838a7c6baa8dc76d1ca525b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Aug 2019 17:48:49 +0100 Subject: [PATCH] Convert to bytes --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 870b2105a..5bc7f407b 100644 --- a/daemon.py +++ b/daemon.py @@ -1843,7 +1843,7 @@ class PubServer(BaseHTTPRequestHandler): if filename and imageLocation>-1: # locate the beginning of the image, after any # carriage returns - startPos=imageLocation+len(searchStr) + startPos=imageLocation+len(searchStr.encode('utf-8')) for offset in range(1,8): if postBytes[startPos+offset]!=10: if postBytes[startPos+offset]!=13: