Skip to content

Commit

Permalink
fix: extract header bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wuranxu committed Jan 31, 2024
1 parent 4a618d2 commit 92d636b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/core/paramters/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ def parse_result(data: list, match_index: str = None):
if match_index.lower() == 'all':
return data
raise CaseParametersError(f"invalid match index: {match_index}, not number or random")
return data
return data[0]
2 changes: 1 addition & 1 deletion app/core/paramters/status_code_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
class StatusCodeParser(Parser):
@staticmethod
def parse(source: dict, expression: str = "", idx: str = None) -> str:
return json.dumps(source.get("status_code"))
return source.get("status_code")

0 comments on commit 92d636b

Please sign in to comment.