This commit is contained in:
Somdev Sangwan
2021-04-26 19:23:05 +05:30
committed by GitHub
parent f254372498
commit 8789c9f47f

View File

@@ -21,6 +21,7 @@ def parse_request(string):
result['method'] = match.group(1)
result['path'] = match.group(2)
result['headers'] = parse_headers(match.group(3))
result['url'] = 'http://' + result['headers']['Host'] + result['path']
result['data'] = match.group(4)
return result