Skip to content

fix: improve HTTP2 response handling for empty body responses#1242

Open
JarryChung wants to merge 1 commit intoavwo:masterfrom
JarryChung:master
Open

fix: improve HTTP2 response handling for empty body responses#1242
JarryChung wants to merge 1 commit intoavwo:masterfrom
JarryChung:master

Conversation

@JarryChung
Copy link
Copy Markdown

  • Replace immediate session destroy with proper event handling
  • Add data and end event listeners for h2Session
  • Ensure wrapper stream properly handles empty responses
  • Fix potential race condition in HTTP2 protocol handling

- Replace immediate session destroy with proper event handling
- Add data and end event listeners for h2Session
- Ensure wrapper stream properly handles empty responses
- Fix potential race condition in HTTP2 protocol handling

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@avwo
Copy link
Copy Markdown
Owner

avwo commented Aug 6, 2025

这个是遇到什么问题?
304204 等没有响应内容的状态码,如果也返回了响应内容 HTTP2 模块会报错。

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.

2 participants