We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eac51b7 commit 1574733Copy full SHA for 1574733
pcap2curl.py
@@ -32,8 +32,8 @@ def payload2curl(p):
32
for line in lines:
33
if ":" in line:
34
headers.append("-H '{}'".format(line))
35
- if "Host:" in line:
36
- host_header = re.search("^Host: (.*)", line)
+ if re.match("^Host:", line, re.I):
+ host_header = re.search("^Host: (.*)", line, re.I)
37
host_name = host_header.group(1)
38
39
proto_host = 'http://{}/'.format(host_name)
0 commit comments