Update utils.py

This commit is contained in:
Somdev Sangwan
2018-12-20 12:36:47 +05:30
committed by GitHub
parent eff08a36f8
commit c035960cad

View File

@@ -79,6 +79,7 @@ def stripper(string, substring, direction='right'):
def extractHeaders(headers):
headers = headers.replace('\\n', '\n')
sorted_headers = {}
matches = re.findall(r'(.*):\s(.*)', headers)
for match in matches: