mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-20 12:45:41 +02:00
refactor RequestHead/ResponseHead
This commit is contained in:
@@ -154,7 +154,7 @@ impl Encoder for Codec {
|
||||
res.head_mut().version = self.version;
|
||||
|
||||
// connection status
|
||||
self.ctype = if let Some(ct) = res.head().ctype {
|
||||
self.ctype = if let Some(ct) = res.head().ctype() {
|
||||
if ct == ConnectionType::KeepAlive {
|
||||
self.ctype
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user