Skip to content

fix: preserve handler Content-Length on HEAD responses - #911

Open
Yundi339 wants to merge 1 commit into
ithewei:masterfrom
Yundi339:fix/head-content-length
Open

Yundi339 wants to merge 1 commit into
ithewei:masterfrom
Yundi339:fix/head-content-length

Conversation

@Yundi339

@Yundi339 Yundi339 commented Oct 21, 2026 •

Copy link
Copy Markdown

#问题

当处理器提供响应正文或设置 content_length,但未显式添加 Content-Length 头时,此分支会写入 Content-Length: 0。会出现 HEAD 响应的长度就与对应 GET 响应的实体长度不一致。

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