mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-25 22:56:02 +02:00
make AnyBody
generic on Body
type (#2448)
This commit is contained in:
@@ -262,7 +262,7 @@ impl ResponseBuilder {
|
||||
S: Stream<Item = Result<Bytes, E>> + 'static,
|
||||
E: Into<Box<dyn StdError>> + 'static,
|
||||
{
|
||||
self.body(AnyBody::from_message(BodyStream::new(stream)))
|
||||
self.body(AnyBody::new_boxed(BodyStream::new(stream)))
|
||||
}
|
||||
|
||||
/// Generate response with an empty body.
|
||||
|
Reference in New Issue
Block a user