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:
parent
397cd3f6db
commit
5f04e6e147
1 changed files with 1 additions and 3 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue