Closed griff closed 6 years ago
There was a bug in the BufferMut::reserve logic in headers::www_authenticate::challenge::bearer::Bearer::to_bytes that would cause a panic.
BufferMut::reserve
headers::www_authenticate::challenge::bearer::Bearer::to_bytes
This small commit adds a test that will panic with the old logic and it fixes the problem.
@griff thanks for fix!
Do you need this at crates.io asap?
Right now I am fine since I just use my own repo for the dependency. But its a pretty bad bug given that it panics so you might want to release it soon.
@griff fyi, 0.0.4 version is now available at crates.io with your fix. Thanks again :)
0.0.4
There was a bug in the
BufferMut::reserve
logic inheaders::www_authenticate::challenge::bearer::Bearer::to_bytes
that would cause a panic.This small commit adds a test that will panic with the old logic and it fixes the problem.