1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

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(), op_http_upgrade_websocket::decl(),
]) ])
.state(move |state| { .state(move |state| {
if auto_compression { state.put(AutoCompression(auto_compression));
state.put(AutoCompression(auto_compression));
}
Ok(()) Ok(())
}) })
.build() .build()