Skip to content

将 Desktop 和 Web 企业应用代理请求体上限提高到 3 MiB - #231

Open
yaojin3616 wants to merge 1 commit into
V1.3.2from
codex/enterprise-app-request-limit
Open

yaojin3616 wants to merge 1 commit into
V1.3.2from
codex/enterprise-app-request-limit

Conversation

@yaojin3616

Copy link
Copy Markdown
Contributor

Desktop 和 Web 的企业应用代理现在可转发最多 3 MiB 的请求体。两端按实际字节数检查,超出上限时在换取应用令牌前返回 413。桌面端将应用文本按 UTF-8 编码后以 Base64 传给本机代理,避免 JSON 转义使合法请求提前触及传输上限。

在 test/enterprise-apps-integration.test.mjs 中新增 Desktop 和 Web 的文本、二进制边界用例,检查 3 MiB 时逐字节完整转发,以及多 1 字节时拒绝且无上游调用。

相关 84 项测试、类型检查、按发布分支固定基准运行的边界门禁及差异检查均通过。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant