This commit is contained in:
Dirk Guijt 2018-02-02 00:55:58 +01:00
commit 27108334f1

View File

@ -284,8 +284,8 @@ def parse_multipart_form(body, boundary):
form_parts = body.split(boundary) form_parts = body.split(boundary)
for form_part in form_parts[1:-1]: for form_part in form_parts[1:-1]:
file_name = None file_name = None
content_type = "text/plain" content_type = 'text/plain'
content_charset = "utf-8" content_charset = 'utf-8'
field_name = None field_name = None
line_index = 2 line_index = 2
line_end_index = 0 line_end_index = 0