fix: ensure HTTP request method in uppper case

This commit is contained in:
debugtalk
2022-12-23 14:04:22 +08:00
parent eeae8b2961
commit a55a2ff730
2 changed files with 2 additions and 2 deletions

View File

@@ -559,7 +559,7 @@ func (r *SessionRunner) Start(givenVars map[string]interface{}) error {
// check if failfast
if r.caseRunner.hrpRunner.failfast {
return errors.Wrap(err, "abort running due to failfast setting")
return errors.New("abort running due to failfast setting")
}
}

View File

@@ -317,7 +317,7 @@ func runStepRequest(r *SessionRunner, step *TStep) (stepResult *StepResult, err
config := r.caseRunner.parsedConfig
rb := newRequestBuilder(parser, config, step.Request)
rb.req.Method = string(step.Request.Method)
rb.req.Method = strings.ToUpper(string(step.Request.Method))
err = rb.prepareUrlParams(stepVariables)
if err != nil {