etwist/server.py
changeset 9533 fa4051e29fbe
parent 9147 01124cfd4b1f
child 9543 39f981482e34
equal deleted inserted replaced
9532:99774ed8036e 9533:fa4051e29fbe
   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()