mirror of https://github.com/fafhrd91/actix-web
add back can_not_read bail
This commit is contained in:
parent
0b3fa41234
commit
deb7d070b2
|
@ -696,7 +696,6 @@ where
|
||||||
if can_not_read {
|
if can_not_read {
|
||||||
log::debug!("cannot read request payload");
|
log::debug!("cannot read request payload");
|
||||||
|
|
||||||
// if we cannot read request payload...
|
|
||||||
if let Some(sender) = &this.payload {
|
if let Some(sender) = &this.payload {
|
||||||
// ...maybe handler does not want to read any more payload...
|
// ...maybe handler does not want to read any more payload...
|
||||||
if let PayloadStatus::Dropped = sender.need_read(cx) {
|
if let PayloadStatus::Dropped = sender.need_read(cx) {
|
||||||
|
@ -750,6 +749,9 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// can_not_read and no request payload
|
||||||
|
return Ok(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue