fix: remove request header startswith : e.g. :method, :scheme

This commit is contained in:
debugtalk
2020-05-19 13:11:46 +08:00
parent f0b03d09ab
commit 8b0f31bd24
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ class HarParser(object):
"""
teststep_headers = {}
for header in entry_json["request"].get("headers", []):
if header["name"] == "cookie":
if header["name"] == "cookie" or header["name"].startswith(":"):
continue
teststep_headers[header["name"]] = header["value"]