Skip to content

Commit

Permalink
fix filterIndex overwritten
Browse files Browse the repository at this point in the history
  • Loading branch information
yangguang8131 committed Nov 26, 2021
1 parent 0d2a3a1 commit 6b64eb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/object/httppipeline/httppipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ func (hp *HTTPPipeline) Handle(ctx context.HTTPContext) string {

filterIndex := -1
filterStat := newFilterStat()
isEnd := false

handle := func(lastResult string) string {
// For saving the `filterIndex`'s filter generated HTTP Response.
Expand All @@ -468,7 +469,7 @@ func (hp *HTTPPipeline) Handle(ctx context.HTTPContext) string {
filterStat = lastStat
}()

filterIndex, isEnd := hp.getNextFilterIndex(filterIndex, lastResult)
filterIndex, isEnd = hp.getNextFilterIndex(filterIndex, lastResult)
if isEnd {
return LabelEND // jumpIf end of pipeline
}
Expand Down

0 comments on commit 6b64eb2

Please sign in to comment.