Skip to content

Commit

Permalink
use keys() to iterate over request header keys
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantgoel committed Nov 1, 2018
1 parent 31aa76d commit 4ac6667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion streaming_form_data/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ParseFailedException(Exception):
def parse_content_boundary(headers):
content_type = None

for key in headers:
for key in headers.keys():
if key.lower() == 'content-type':
content_type = headers.get(key)
break
Expand Down

0 comments on commit 4ac6667

Please sign in to comment.