Skip to content

Commit

Permalink
fix bug with route
Browse files Browse the repository at this point in the history
  • Loading branch information
spikelu2016 committed Jan 9, 2024
1 parent 9aa21ae commit 42bb1d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/route/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,17 @@ func (r *Route) RunSteps(req *Request) (*Response, error) {
continue
}

responses = append(responses, res)

if res.StatusCode != http.StatusOK {
retries -= 1
continue
}

responses = append(responses, res)
break
}

if len(responses) > 0 && responses[len(responses)-1].StatusCode == http.StatusOK {
break
}
}
Expand Down

0 comments on commit 42bb1d8

Please sign in to comment.