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