mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
fix: generate headers.\"Content-Type\" in har2case
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
## v0.6.2 (2022-02-18)
|
||||
|
||||
- fix: omit pseudo header names for HTTP/1, e.g. :authority
|
||||
- fix: generate `headers.\"Content-Type\"` in har2case
|
||||
|
||||
## v0.6.1 (2022-02-17)
|
||||
|
||||
|
||||
@@ -267,7 +267,7 @@ func (s *tStep) makeValidate(entry *Entry) error {
|
||||
// assert Content-Type
|
||||
if strings.EqualFold(header.Name, "Content-Type") {
|
||||
s.Validators = append(s.Validators, hrp.Validator{
|
||||
Check: "headers.Content-Type",
|
||||
Check: "headers.\"Content-Type\"",
|
||||
Assert: "equals",
|
||||
Expect: header.Value,
|
||||
Message: "assert response header Content-Type",
|
||||
|
||||
Reference in New Issue
Block a user