Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

Yingyi / 颖逸698a02beb1d6
diff --git a/kernel/api/network.go b/kernel/api/network.go
index 0dbdd77856..5b5478fb44 100644
--- a/kernel/api/network.go
+++ b/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{}{