mirror of
https://github.com/actix/actix-web.git
synced 2025-01-03 13:58:44 +00:00
Refactoring of server output to not exclude HTTP_10 (#552)
This commit is contained in:
parent
f383f618b5
commit
960274ada8
2 changed files with 12 additions and 6 deletions
|
@ -1,5 +1,11 @@
|
||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
|
## [0.7.14] - 2018-10-x
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* HttpServer now treats streaming bodies the same for HTTP/1.x protocols. #549
|
||||||
|
|
||||||
## [0.7.13] - 2018-10-14
|
## [0.7.13] - 2018-10-14
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -300,10 +300,10 @@ impl Output {
|
||||||
Some(true) => {
|
Some(true) => {
|
||||||
// Enable transfer encoding
|
// Enable transfer encoding
|
||||||
info.length = ResponseLength::Chunked;
|
info.length = ResponseLength::Chunked;
|
||||||
if version == Version::HTTP_11 {
|
if version == Version::HTTP_2 {
|
||||||
TransferEncoding::chunked(buf)
|
|
||||||
} else {
|
|
||||||
TransferEncoding::eof(buf)
|
TransferEncoding::eof(buf)
|
||||||
|
} else {
|
||||||
|
TransferEncoding::chunked(buf)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Some(false) => TransferEncoding::eof(buf),
|
Some(false) => TransferEncoding::eof(buf),
|
||||||
|
@ -337,10 +337,10 @@ impl Output {
|
||||||
} else {
|
} else {
|
||||||
// Enable transfer encoding
|
// Enable transfer encoding
|
||||||
info.length = ResponseLength::Chunked;
|
info.length = ResponseLength::Chunked;
|
||||||
if version == Version::HTTP_11 {
|
if version == Version::HTTP_2 {
|
||||||
TransferEncoding::chunked(buf)
|
|
||||||
} else {
|
|
||||||
TransferEncoding::eof(buf)
|
TransferEncoding::eof(buf)
|
||||||
|
} else {
|
||||||
|
TransferEncoding::chunked(buf)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue