diff options
Diffstat (limited to 'cli/lsp/registries.rs')
-rw-r--r-- | cli/lsp/registries.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cli/lsp/registries.rs b/cli/lsp/registries.rs index d2044ae66..ea33219e8 100644 --- a/cli/lsp/registries.rs +++ b/cli/lsp/registries.rs @@ -15,6 +15,7 @@ use super::path_to_regex::Token; use crate::args::CacheSetting; use crate::cache::GlobalHttpCache; use crate::cache::HttpCache; +use crate::file_fetcher::FetchOptions; use crate::file_fetcher::FileFetcher; use crate::http_util::HttpClient; @@ -509,11 +510,12 @@ impl ModuleRegistry { ) -> Result<Vec<RegistryConfiguration>, AnyError> { let fetch_result = self .file_fetcher - .fetch_with_accept( + .fetch_with_options(FetchOptions { specifier, - PermissionsContainer::allow_all(), - Some("application/vnd.deno.reg.v2+json, application/vnd.deno.reg.v1+json;q=0.9, application/json;q=0.8"), - ) + permissions: PermissionsContainer::allow_all(), + maybe_accept: Some("application/vnd.deno.reg.v2+json, application/vnd.deno.reg.v1+json;q=0.9, application/json;q=0.8"), + maybe_cache_setting: None, + }) .await; // if there is an error fetching, we will cache an empty file, so that // subsequent requests they are just an empty doc which will error without |