summaryrefslogtreecommitdiff
path: root/cli/http_cache.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/http_cache.rs')
-rw-r--r--cli/http_cache.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/http_cache.rs b/cli/http_cache.rs
index 4677b44c9..7a27cf3f8 100644
--- a/cli/http_cache.rs
+++ b/cli/http_cache.rs
@@ -38,6 +38,7 @@ fn base_url_to_filename(url: &Url) -> PathBuf {
};
out.push(host_port);
}
+ "data" => (),
scheme => {
unimplemented!(
"Don't know how to create cache name for scheme: {}",
@@ -253,6 +254,14 @@ mod tests {
"https://deno.land/?asdf=qwer#qwer",
"https/deno.land/e4edd1f433165141015db6a823094e6bd8f24dd16fe33f2abd99d34a0a21a3c0",
),
+ (
+ "data:application/typescript;base64,ZXhwb3J0IGNvbnN0IGEgPSAiYSI7CgpleHBvcnQgZW51bSBBIHsKICBBLAogIEIsCiAgQywKfQo=",
+ "data/c21c7fc382b2b0553dc0864aa81a3acacfb7b3d1285ab5ae76da6abec213fb37",
+ ),
+ (
+ "data:text/plain,Hello%2C%20Deno!",
+ "data/967374e3561d6741234131e342bf5c6848b70b13758adfe23ee1a813a8131818",
+ )
];
for (url, expected) in test_cases.iter() {