mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-28 01:52:57 +01:00
do not set content encoding header for upgraded connection
This commit is contained in:
parent
e4f8551cba
commit
6c4fdf604b
@ -459,7 +459,10 @@ impl PayloadEncoder {
|
|||||||
} else {
|
} else {
|
||||||
resp.headers.insert(CONNECTION, HeaderValue::from_static("upgrade"));
|
resp.headers.insert(CONNECTION, HeaderValue::from_static("upgrade"));
|
||||||
}
|
}
|
||||||
|
if encoding != ContentEncoding::Identity {
|
||||||
encoding = ContentEncoding::Identity;
|
encoding = ContentEncoding::Identity;
|
||||||
|
resp.headers.remove(CONTENT_ENCODING);
|
||||||
|
}
|
||||||
TransferEncoding::eof()
|
TransferEncoding::eof()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user