Fix upload without content-type

This commit is contained in:
imbolc 2016-11-03 12:34:55 +07:00
parent 3d88818841
commit 3cd3b2d9b7

View File

@ -71,7 +71,7 @@ class Request:
self.parsed_form = {} self.parsed_form = {}
self.parsed_files = {} self.parsed_files = {}
content_type, parameters = parse_header( content_type, parameters = parse_header(
self.headers.get('Content-Type')) self.headers.get('Content-Type', ''))
try: try:
is_url_encoded = ( is_url_encoded = (
content_type == 'application/x-www-form-urlencoded') content_type == 'application/x-www-form-urlencoded')