From 5f04e6e147f5cdfaa83761a72b7db8d2cb012598 Mon Sep 17 00:00:00 2001 From: Satya Rohith Date: Mon, 24 Oct 2022 20:36:57 +0400 Subject: [PATCH] fix ext/http --- ext/http/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/http/lib.rs b/ext/http/lib.rs index 174e3129d8..cd2fbdbe46 100644 --- a/ext/http/lib.rs +++ b/ext/http/lib.rs @@ -90,9 +90,7 @@ pub fn init(auto_compression: bool) -> Extension { op_http_upgrade_websocket::decl(), ]) .state(move |state| { - if auto_compression { - state.put(AutoCompression(auto_compression)); - } + state.put(AutoCompression(auto_compression)); Ok(()) }) .build()