diff --git a/net/ghttp/ghttp_request.go b/net/ghttp/ghttp_request.go index fa2fd6420..368f6abd5 100644 --- a/net/ghttp/ghttp_request.go +++ b/net/ghttp/ghttp_request.go @@ -9,14 +9,15 @@ package ghttp import ( "context" "fmt" + "net/http" + "strings" + "time" + "github.com/gogf/gf/internal/intlog" "github.com/gogf/gf/os/gres" "github.com/gogf/gf/os/gsession" "github.com/gogf/gf/os/gview" "github.com/gogf/gf/util/guid" - "net/http" - "strings" - "time" "github.com/gogf/gf/os/gtime" "github.com/gogf/gf/text/gregex" @@ -222,3 +223,10 @@ func (r *Request) GetReferer() string { func (r *Request) GetError() error { return r.error } + +// ReloadParam used for request parameter filtering. +func (r *Request) ReloadParam() { + r.parsedBody = false + r.parsedForm = false + r.parsedQuery = false +}