fix: generate headers.\"Content-Type\" in har2case

This commit is contained in:
debugtalk
2022-02-18 19:39:41 +08:00
parent 865c753ea9
commit 0f3dd1b6d6
2 changed files with 2 additions and 1 deletions

View File

@@ -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)

View File

@@ -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",