h3
h3 copied to clipboard
fix: read chunked body
🔗 Linked issue
resolve https://github.com/unjs/h3/issues/651
And SuperTest can not successfully test the request with chunked body, so I rewrote the body test using undici.
❓ Type of change
- [ ] 📖 Documentation (updates to the documentation, readme, or JSdoc annotations)
- [x] 🐞 Bug fix (a non-breaking change that fixes an issue)
- [ ] 👌 Enhancement (improving an existing functionality like performance)
- [ ] ✨ New feature (a non-breaking change that adds functionality)
- [ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
- [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to change)
📚 Description
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding
📝 Checklist
- [x] I have linked an issue or discussion.
- [x] I have updated the documentation accordingly.
I think this is a bug in h3. I am not having trouble with this issue, but I think it should be fixed.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 79.43%. Comparing base (
a58d7c9) to head (077ec8c). Report is 79 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #652 +/- ##
==========================================
+ Coverage 77.83% 79.43% +1.59%
==========================================
Files 47 54 +7
Lines 4286 5334 +1048
Branches 611 678 +67
==========================================
+ Hits 3336 4237 +901
- Misses 933 1078 +145
- Partials 17 19 +2
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.