mirror of
https://github.com/actix/actix-web.git
synced 2024-12-19 14:49:01 +00:00
fix name
This commit is contained in:
parent
e9e247217a
commit
3f649b8e07
2 changed files with 4 additions and 3 deletions
|
@ -252,7 +252,7 @@ impl<T, A, H> Http1<T, A, H>
|
||||||
// check for parse error
|
// check for parse error
|
||||||
if self.tasks.is_empty() {
|
if self.tasks.is_empty() {
|
||||||
if self.h2 {
|
if self.h2 {
|
||||||
return Ok(Async::Ready(Http1Result::Upgrade))
|
return Ok(Async::Ready(Http1Result::Switch))
|
||||||
}
|
}
|
||||||
if self.error || self.keepalive_timer.is_none() {
|
if self.error || self.keepalive_timer.is_none() {
|
||||||
return Ok(Async::Ready(Http1Result::Done))
|
return Ok(Async::Ready(Http1Result::Done))
|
||||||
|
|
|
@ -190,12 +190,13 @@ impl Task {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// use exiting frames
|
// if task is paused, write buffer probably is full
|
||||||
if self.state != TaskRunningState::Paused {
|
if self.state != TaskRunningState::Paused {
|
||||||
|
// process exiting frames
|
||||||
while let Some(frame) = self.frames.pop_front() {
|
while let Some(frame) = self.frames.pop_front() {
|
||||||
trace!("IO Frame: {:?}", frame);
|
trace!("IO Frame: {:?}", frame);
|
||||||
let res = match frame {
|
let res = match frame {
|
||||||
Frame::Message(mut response) => {
|
Frame::Message(response) => {
|
||||||
trace!("Prepare message status={:?}", response.status);
|
trace!("Prepare message status={:?}", response.status);
|
||||||
|
|
||||||
// run middlewares
|
// run middlewares
|
||||||
|
|
Loading…
Reference in a new issue