mirror of
https://github.com/actix/actix-web.git
synced 2025-03-28 05:45:27 +00:00
always poll stream or actor for the first time
This commit is contained in:
parent
484b00a0f9
commit
61970ab190
1 changed files with 8 additions and 4 deletions
|
@ -482,10 +482,14 @@ impl<S: 'static, H> ProcessResponse<S, H> {
|
|||
}
|
||||
|
||||
match self.resp.replace_body(Body::Empty) {
|
||||
Body::Streaming(stream) =>
|
||||
self.iostate = IOState::Payload(stream),
|
||||
Body::Actor(ctx) =>
|
||||
self.iostate = IOState::Actor(ctx),
|
||||
Body::Streaming(stream) => {
|
||||
self.iostate = IOState::Payload(stream);
|
||||
continue
|
||||
},
|
||||
Body::Actor(ctx) => {
|
||||
self.iostate = IOState::Actor(ctx);
|
||||
continue
|
||||
},
|
||||
_ => (),
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue