mirror of
https://github.com/actix/actix-extras.git
synced 2025-07-01 12:15:08 +02:00
set server response version
This commit is contained in:
@ -149,6 +149,9 @@ impl Encoder for Codec {
|
||||
) -> Result<(), Self::Error> {
|
||||
match item {
|
||||
Message::Item((mut res, length)) => {
|
||||
// set response version
|
||||
res.head_mut().version = self.version;
|
||||
|
||||
// connection status
|
||||
self.ctype = if let Some(ct) = res.head().ctype {
|
||||
if ct == ConnectionType::KeepAlive {
|
||||
|
Reference in New Issue
Block a user