Skip to content

fix(network-http): 修复HTTP请求管线正确性与响应一致性 - #938

Merged
AlianBlank merged 2 commits into
mainfrom
feature/auto-server-source-worker-run-12744-20261101T0652
Nov 1, 2026
Merged

AlianBlank merged 2 commits into
mainfrom
feature/auto-server-source-worker-run-12744-20261101T0652

Conversation

@AlianBlank

Copy link
Copy Markdown
Collaborator

Fixes GFX-1180
Closes #926

按全量代码审查 GFX-1180(CR-M01/M02/M03、CR-L01~L05)落地 8 项:
ProtoBuf 成功响应写出前更正 Content-Type 为 application/x-protobuf;
参数字典改 OrdinalIgnoreCase 与强类型绑定口径对齐,大小写差异同名键
显式拒绝,消除 Body 静默覆盖 Query 值的校验替换窗口;非对象/空
JSON Body 统一按参数错误拒绝(新增本地化键
Network.Http.RequestBodyNotJsonObject),不再归为服务器错误;
缺 Content-Type 与 DataAnnotations 校验失败统一 JSON envelope 且
业务码由字面量 400 改 GameHttpStatusCode.ParamErr;Swagger 路由
匹配改末段精确比较并修复驼峰路由无法匹配的缺口,GET 参数必填性
跟随 RequiredAttribute;AOP 拒绝且未自写响应时回写校验失败信封并
补 IHttpAopHandler 契约文档;CheckSign 缺参错误改本地化消息;
删除 HttpStatusMessage 无引用成员与孤儿本地化键。

BREAKING CHANGE: DataAnnotations 校验失败业务码 400 改为 13;
ProtoBuf 成功响应 Content-Type 由 JSON 改 application/x-protobuf;
参数合并与取键口径改为大小写不敏感;HttpStatusMessage 的
Success/NotFoundCommand/CheckFailedCommand 公共成员删除。

Closes #926

Linear: GFX-1180
@linear-code

linear-code Bot commented Nov 1, 2026

Copy link
Copy Markdown

GFX-1180

@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@AlianBlank
AlianBlank merged commit 8fae56a into main Nov 1, 2026
@AlianBlank
AlianBlank deleted the feature/auto-server-source-worker-run-12744-20261101T0652 branch November 1, 2026 12:20
@sonarqubecloud

sonarqubecloud Bot commented Nov 1, 2026

Copy link
Copy Markdown

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.

修复 GameFrameX.Network.HTTP 请求管线正确性与响应一致性(CR-M01/M02/M03、CR-L01~L06)

1 participant