Merge pull request #137 from imbolc/upload-without-content-type

Fix upload without content-type
This commit is contained in:
Eli Uriegas 2016-11-03 08:26:05 -06:00 committed by GitHub
commit 28488075b9

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')