mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-29 08:09:18 +02:00
relax unpin bounds on payload types (#2545)
This commit is contained in:
@@ -646,10 +646,11 @@ where
|
||||
Payload is attached to Request and passed to Service::call
|
||||
where the state can be collected and consumed.
|
||||
*/
|
||||
let (ps, pl) = Payload::create(false);
|
||||
let (req1, _) = req.replace_payload(crate::Payload::H1(pl));
|
||||
let (sender, payload) = Payload::create(false);
|
||||
let (req1, _) =
|
||||
req.replace_payload(crate::Payload::H1 { payload });
|
||||
req = req1;
|
||||
*this.payload = Some(ps);
|
||||
*this.payload = Some(sender);
|
||||
}
|
||||
|
||||
// Request has no payload.
|
||||
|
Reference in New Issue
Block a user