hyperium / h2

HTTP 2.0 client & server implementation for Rust.
MIT License
1.35k stars 270 forks source link

Fix Error::reason regression #562

Closed seanmonstar closed 2 years ago

seanmonstar commented 2 years ago

The Error::reason() method regressed by not checking if the internal kind was a user-created error. The second commit fixes this. The first commit was adding a test about send_reset, which didn't actually end up being the problem, but we didn't have an explicit test, so included it anyways.

Fixes #561

nox commented 2 years ago

Oh sorry for that, I added Reason after I was entirely done with the patch and completely forgot to patch that method.