forked from indymedia/epicyon
Back to simple read
parent
5f690f15f6
commit
22de6c9f58
10
daemon.py
10
daemon.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue