Skip to content

v1.14

Choose a tag to compare

@hack007x hack007x released this 08 Mar 08:05
· 15 commits to main since this release
f99bff0

EN:

  1. Optimized the :collectMatcherEvidence function to collect four types of evidence: status_code, body contains, body matches, and header.
  2. Added :header for precise matching of Content-Type in response headers.
  3. To match Content-Type: text/plain; charset=utf-8 in the response header.
  4. Example: #@ matcher: header["Content-Type"] contains "text"
  5. Or: #@ matcher: header["Content-Type"] contains "text/plain"

ZH:
1:优化:collectMatcherEvidence函数,收集四种证据:status_code、body contains、body matches、header
2:新增:header 可在响应头精准匹配Content-Type
3:想在响应头匹配Content-Type: text/plain; charset=utf-8
4:示例 #@ matcher: header["Content-Type"] contains "text"
5:或者 #@ matcher: header["Content-Type"] contains "text/plain"