mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 06:23:52 +08:00
fix: remove cookie in request headers
This commit is contained in:
@@ -109,6 +109,9 @@ class HarParser(object):
|
|||||||
"""
|
"""
|
||||||
teststep_headers = {}
|
teststep_headers = {}
|
||||||
for header in entry_json["request"].get("headers", []):
|
for header in entry_json["request"].get("headers", []):
|
||||||
|
if header["name"] == "cookie":
|
||||||
|
continue
|
||||||
|
|
||||||
teststep_headers[header["name"]] = header["value"]
|
teststep_headers[header["name"]] = header["value"]
|
||||||
|
|
||||||
if teststep_headers:
|
if teststep_headers:
|
||||||
|
|||||||
Reference in New Issue
Block a user