fix ext/http

This commit is contained in:
Satya Rohith 2022-10-24 20:36:57 +04:00
parent 397cd3f6db
commit 5f04e6e147
No known key found for this signature in database
GPG Key ID: B2705CF40523EB05

View File

@ -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()