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

revive commented out tests (#1912)

This commit is contained in:
Rob Ede
2021-01-17 05:19:32 +00:00
committed by GitHub
parent 1c95fc2654
commit ee10148444
7 changed files with 243 additions and 222 deletions

View File

@ -16,6 +16,7 @@ use actix_http::{
Error,
};
use actix_service::{Service, Transform};
use futures_core::ready;
use futures_util::future::{ok, Ready};
use pin_project::pin_project;
@ -131,7 +132,7 @@ where
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
let this = self.project();
match futures_util::ready!(this.fut.poll(cx)) {
match ready!(this.fut.poll(cx)) {
Ok(resp) => {
let enc = if let Some(enc) = resp.response().get_encoding() {
enc