etwist/server.py
changeset 9543 39f981482e34
parent 9402 2c48c091b6a2
parent 9533 fa4051e29fbe
child 9779 3f1685ac2f16
equal deleted inserted replaced
9520:78702b55c089 9543:39f981482e34
   236     self._do_process_multipart = False
   236     self._do_process_multipart = False
   237     if self.method == "POST" and ctype:
   237     if self.method == "POST" and ctype:
   238         key, pdict = parse_header(ctype)
   238         key, pdict = parse_header(ctype)
   239         if key == 'application/x-www-form-urlencoded':
   239         if key == 'application/x-www-form-urlencoded':
   240             self.args.update(http.parse_qs(self.content.read(), 1))
   240             self.args.update(http.parse_qs(self.content.read(), 1))
       
   241             self.content.seek(0)
   241         elif key == 'multipart/form-data':
   242         elif key == 'multipart/form-data':
   242             # defer this as it can be extremely time consumming
   243             # defer this as it can be extremely time consumming
   243             # with big files
   244             # with big files
   244             self._do_process_multipart = True
   245             self._do_process_multipart = True
   245     self.process()
   246     self.process()