-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty frame cause panic #88
Comments
The collect combinator should probably filter out the empty data frames, to prevent the panic. |
http-body/http-body-util/src/collected.rs Lines 41 to 48 in 619ba28
In http-body/http-body-util/src/combinators/collect.rs Lines 25 to 43 in 619ba28
In |
Hi what's the status on this? Anyone working on adding this change? Had to make this change for our project, can send a PR if no one is working on this. |
No I don't think anyone is working on it. You're welcome to submit a PR. |
* Fixes issue #88 (empty frame panic). * Better check for empty frame.
Hey, we'd love to use an officially released version. Is it possible to please create a release? @seanmonstar |
http-body/http-body-util/src/collected.rs
Line 44 in 619ba28
http-body/http-body-util/src/util.rs
Line 14 in 619ba28
When frame is empty, this cause panic, just wondering if this is expected behavior?
Some HTTP/2 implementations may product empty frames, when I create a reverse proxy server,and call
body.collect().await.to_bytes()
to read data, server will give error in debug mode. Or just give a warning here?The text was updated successfully, but these errors were encountered: