mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 20:38:55 +00:00
fix ext/http
This commit is contained in:
parent
397cd3f6db
commit
5f04e6e147
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user