summaryrefslogtreecommitdiff
path: root/cli/specifier_handler.rs
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-01-06 13:22:38 +1100
committerGitHub <noreply@github.com>2021-01-06 13:22:38 +1100
commit54240c22af6233d1d977d469868b0d9050cad6da (patch)
tree81af9892f8728852387fad9c2d243ab933de927f /cli/specifier_handler.rs
parent60c9c857584bf5180dd0f7b937683dd9691aef84 (diff)
feat(cli): support data urls (#8866)
Closes: #5059 Co-authored-by: Valentin Anger <syrupthinker@gryphno.de>
Diffstat (limited to 'cli/specifier_handler.rs')
-rw-r--r--cli/specifier_handler.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/specifier_handler.rs b/cli/specifier_handler.rs
index 25ee915f9..74aa21391 100644
--- a/cli/specifier_handler.rs
+++ b/cli/specifier_handler.rs
@@ -305,7 +305,7 @@ impl SpecifierHandler for FetchHandler {
}
})?;
let url = source_file.specifier.as_url();
- let is_remote = url.scheme() != "file";
+ let is_remote = !(url.scheme() == "file" || url.scheme() == "data");
let filename = disk_cache.get_cache_filename_with_extension(url, "meta");
let maybe_version = if let Some(filename) = filename {
if let Ok(bytes) = disk_cache.get(&filename) {