mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
implement changes after code review
This commit is contained in:
+1
-1
@@ -456,7 +456,7 @@ def _parse_content_type_header(header):
|
||||
|
||||
tokens = header.split(';')
|
||||
content_type, params = tokens[0].strip(), tokens[1:]
|
||||
params_dict = {} # Using dict is actually slower than a dictionary literal. Weird but tru
|
||||
params_dict = {}
|
||||
|
||||
for param in params:
|
||||
if param and not param.isspace():
|
||||
|
||||
Reference in New Issue
Block a user