fix: _search_jmespath add expr verificaion

_search_jmespath():input-->output
before:"success"-->None
after:"success"-->"success"
This commit is contained in:
xucong053
2021-07-13 20:28:46 +08:00
committed by GitHub
parent 9589f528e5
commit ae41de3926

View File

@@ -151,6 +151,8 @@ class ResponseObject(object):
"cookies": self.cookies,
"body": self.body,
}
if not expr.startswith(tuple(resp_obj_meta.keys())):
return expr
try:
check_value = jmespath.search(expr, resp_obj_meta)
except JMESPathError as ex: