Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #78 from lihuacai168/hot-fix
Browse files Browse the repository at this point in the history
fix: custom content-type prior to default
  • Loading branch information
debugtalk committed Feb 10, 2022
2 parents 338f899 + 749f1a3 commit 5ede366
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runner.go
Expand Up @@ -678,7 +678,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)
Expand Down

0 comments on commit 5ede366

Please sign in to comment.