Fix upload without content-type
This commit is contained in:
parent
3d88818841
commit
3cd3b2d9b7
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user