mirror of
https://github.com/actix/actix-web.git
synced 2025-01-03 13:58:44 +00:00
do not set content encoding header for upgraded connection
This commit is contained in:
parent
e4f8551cba
commit
6c4fdf604b
1 changed files with 4 additions and 1 deletions
|
@ -459,7 +459,10 @@ impl PayloadEncoder {
|
|||
} else {
|
||||
resp.headers.insert(CONNECTION, HeaderValue::from_static("upgrade"));
|
||||
}
|
||||
if encoding != ContentEncoding::Identity {
|
||||
encoding = ContentEncoding::Identity;
|
||||
resp.headers.remove(CONTENT_ENCODING);
|
||||
}
|
||||
TransferEncoding::eof()
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue