1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-07-01 16:55:08 +02:00

fix Bodyencoding trait usage

This commit is contained in:
Nikolay Kim
2019-12-18 09:30:14 +06:00
parent 3b860ebdc7
commit 1732ae8c79
7 changed files with 24 additions and 21 deletions

View File

@ -135,7 +135,7 @@ where
match futures::ready!(this.fut.poll(cx)) {
Ok(resp) => {
let enc = if let Some(enc) = resp.response().encoding() {
let enc = if let Some(enc) = resp.response().get_encoding() {
enc
} else {
*this.encoding