Skip to content

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

:bug: Give proxy compression fixtures sufficient headroom https://github.com/siyuan-note/siyuan/issues/20291

Danielbb9c441465ba
diff --git a/kernel/api/network_test.go b/kernel/api/network_test.go
index 8012411196..55d8091391 100644
--- a/kernel/api/network_test.go
+++ b/kernel/api/network_test.go
@@ -147,7 +147,7 @@ func TestEventSourceProxyResponseSecurityHeaders(t *testing.T) {
}
func TestForwardProxyResponseSizeLimit(t *testing.T) {
- const limit int64 = 64
+ const limit int64 = 1024
body := bytes.Repeat([]byte("a"), int(limit)+1)
var compressed bytes.Buffer
gzipWriter := gzip.NewWriter(&compressed)