h3 icon indicating copy to clipboard operation
h3 copied to clipboard

fix: read chunked body

Open aaharu opened this issue 2 years ago • 1 comments

🔗 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.

aaharu avatar Feb 17 '24 11:02 aaharu

I think this is a bug in h3. I am not having trouble with this issue, but I think it should be fixed.

aaharu avatar Apr 24 '24 09:04 aaharu

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.

codecov[bot] avatar Jun 18 '24 20:06 codecov[bot]