mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-02 22:39:42 +08:00
fix: ensure HTTP request method in uppper case
This commit is contained in:
@@ -559,7 +559,7 @@ func (r *SessionRunner) Start(givenVars map[string]interface{}) error {
|
|||||||
|
|
||||||
// check if failfast
|
// check if failfast
|
||||||
if r.caseRunner.hrpRunner.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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -317,7 +317,7 @@ func runStepRequest(r *SessionRunner, step *TStep) (stepResult *StepResult, err
|
|||||||
config := r.caseRunner.parsedConfig
|
config := r.caseRunner.parsedConfig
|
||||||
|
|
||||||
rb := newRequestBuilder(parser, config, step.Request)
|
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)
|
err = rb.prepareUrlParams(stepVariables)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user