Repository navigation
fix(ingress): correct response framing after protocol conversion - #110
Open
Ember-Moth wants to merge 2 commits into
Open
Ember-Moth wants to merge 2 commits into
Ember-Moth wants to merge 2 commits into
Conversation
Discard upstream Content-Length for successful conversions and cover larger and smaller JSON bodies, SSE output, and error passthrough over real HTTP connections.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #108
成功协议转换时清除上游
Content-Length,由 HTTP 服务根据转换后的正文确定消息边界,避免空响应或截断。错误响应仍原样透传。新增真实 HTTP 回归测试,覆盖 JSON 变长、变短、SSE 和 429 错误透传。
验证
go test -race ./internal/ingress -run '^TestRelayKitResponseFramingAfterConversion$' -count=1:4 个场景通过;修复前三个转换场景失败。go vet ./...:通过。gofmt -l、git diff --check:通过。实现由 AI 辅助完成。