mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 06:23:52 +08:00
fix: remove request header startswith : e.g. :method, :scheme
This commit is contained in:
@@ -13,6 +13,10 @@
|
|||||||
- fix: extract response cookies
|
- fix: extract response cookies
|
||||||
- fix: handle errors when no valid testcases generated
|
- fix: handle errors when no valid testcases generated
|
||||||
|
|
||||||
|
**Changed**
|
||||||
|
|
||||||
|
- change: har2case do not ignore request headers, except for header startswith :
|
||||||
|
|
||||||
## 3.0.3 (2020-05-17)
|
## 3.0.3 (2020-05-17)
|
||||||
|
|
||||||
**Fixed**
|
**Fixed**
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ 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":
|
if header["name"] == "cookie" or header["name"].startswith(":"):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
teststep_headers[header["name"]] = header["value"]
|
teststep_headers[header["name"]] = header["value"]
|
||||||
|
|||||||
Reference in New Issue
Block a user