Back to simple read

master
Bob Mottram 2019-08-26 22:22:23 +01:00
parent 5f690f15f6
commit 22de6c9f58
1 changed files with 1 additions and 9 deletions

View File

@ -2136,15 +2136,7 @@ class PubServer(BaseHTTPRequestHandler):
self.server.POSTbusy=False
return
if self.server.debug:
print('DEBUG: reading profile data. '+str(length)+' bytes')
postBytes = 0
while postBytes < length:
postBytes += len(self.rfile.read(min(66556, length - read)))
if self.server.debug:
print('DEBUG: profile data read ended')
#postBytes=self.rfile.read(length)
postBytes=self.rfile.read(length)
msg = email.parser.BytesParser().parsebytes(postBytes)
messageFields=msg.get_payload(decode=False).split(boundary)