Przeglądaj źródła

:bug: Fix the issue of unparsing `PostForm` (#9746)

Yingyi / 颖逸 1 rok temu
rodzic
commit
698a02beb1
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      kernel/api/network.go

+ 3 - 0
kernel/api/network.go

@@ -22,6 +22,7 @@ import (
 	"encoding/hex"
 	"fmt"
 	"io"
+	"math"
 	"net/http"
 	"net/url"
 	"strings"
@@ -45,6 +46,8 @@ func echo(c *gin.Context) {
 	} else {
 		rawData = nil
 	}
+	c.Request.ParseForm()
+	c.Request.ParseMultipartForm(math.MaxInt64)
 
 	ret.Data = map[string]interface{}{
 		"Context": map[string]interface{}{