Skip to content

Commit

Permalink
处理pr意见,补充详细信息
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-debug110 committed Aug 23, 2023
1 parent 8ce5436 commit 843d80a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/app/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,10 @@ func (ctx *RequestContext) Reset() {

// Redirect returns an HTTP redirect to the specific location.
// Note that this will not stop the current handler.
// in other words, if existed,the following code maybe execute and cause unexpected result
// in other words, even if Redirect() is called, the remaining handlers will still be executed and cause unexpected result.
// So it should call Abort to ensure the remaining handlers for this request are not called.
// ctx.Abort()
// return
func (ctx *RequestContext) Redirect(statusCode int, uri []byte) {
ctx.redirect(uri, statusCode)
}
Expand Down

0 comments on commit 843d80a

Please sign in to comment.