mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +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: 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)
|
||||
|
||||
**Fixed**
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user