Merge branch 'main' of github.com:xucong053/hrp

This commit is contained in:
xucong053
2022-02-11 15:07:10 +08:00
3 changed files with 10 additions and 1 deletions

View File

@@ -681,7 +681,9 @@ func (r *caseRunner) runStepRequest(step *TStep) (stepResult *stepData, err erro
if err != nil {
return stepResult, err
}
req.Header.Set("Content-Type", "application/json; charset=UTF-8")
if req.Header.Get("Content-Type") == "" {
req.Header.Set("Content-Type", "application/json; charset=utf-8")
}
}
case string:
dataBytes = []byte(vv)