mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-24 09:50:00 +08:00
fix: generate headers.\"Content-Type\" in har2case
This commit is contained in:
@@ -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