mirror of https://github.com/fafhrd91/actix-web
align behavior
This commit is contained in:
parent
bc498938fc
commit
2378bbddc5
|
|
@ -3,6 +3,9 @@
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
- Minimum supported Rust version (MSRV) is now 1.88.
|
- Minimum supported Rust version (MSRV) is now 1.88.
|
||||||
|
- Fix truncated body ending without error when connection closed abnormally. [#3067]
|
||||||
|
|
||||||
|
[#3067]: https://github.com/actix/actix-web/pull/3067
|
||||||
|
|
||||||
## 3.11.2
|
## 3.11.2
|
||||||
|
|
||||||
|
|
@ -96,9 +99,6 @@
|
||||||
- Add `body::to_bytes_limited()` function.
|
- Add `body::to_bytes_limited()` function.
|
||||||
- Add `body::BodyLimitExceeded` error type.
|
- Add `body::BodyLimitExceeded` error type.
|
||||||
|
|
||||||
### Fixed
|
|
||||||
- Fix truncated body ending without error when connection closed abnormally. [#3067]
|
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Minimum supported Rust version (MSRV) is now 1.68 due to transitive `time` dependency.
|
- Minimum supported Rust version (MSRV) is now 1.68 due to transitive `time` dependency.
|
||||||
|
|
|
||||||
|
|
@ -1156,7 +1156,7 @@ where
|
||||||
let inner = inner.as_mut().project();
|
let inner = inner.as_mut().project();
|
||||||
inner.flags.insert(Flags::READ_DISCONNECT);
|
inner.flags.insert(Flags::READ_DISCONNECT);
|
||||||
if let Some(mut payload) = inner.payload.take() {
|
if let Some(mut payload) = inner.payload.take() {
|
||||||
payload.set_error(io::Error::from(io::ErrorKind::UnexpectedEof).into());
|
payload.set_error(PayloadError::Incomplete(None));
|
||||||
payload.feed_eof();
|
payload.feed_eof();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue