add ReloadParam func to 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
+}
