Closed cole-h closed 2 months ago
The call to into_inner() discards the wrapper type constructed by map_err(). So instead, map_err() the actual stream, and call Body::from_stream on the wrapped stream.
into_inner()
map_err()
Body::from_stream
This was originally fixed in https://github.com/zhaofengli/attic/pull/137, but the update to axum 0.7 in https://github.com/zhaofengli/attic/pull/138 migrated that functionality slightly incorrectly.
Oops, that was a mistake. Thanks for the fix!
The call to
into_inner()
discards the wrapper type constructed bymap_err()
. So instead,map_err()
the actual stream, and callBody::from_stream
on the wrapped stream.This was originally fixed in https://github.com/zhaofengli/attic/pull/137, but the update to axum 0.7 in https://github.com/zhaofengli/attic/pull/138 migrated that functionality slightly incorrectly.