diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-02-28 13:15:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-28 13:15:31 -0500 |
commit | 0099c28db35a63678e04b31434d38db52a11c3a5 (patch) | |
tree | 387007b728fe9a32dad26b043998f25e0577c00f /cli/http_util.rs | |
parent | bc7dbfafff7f73dc78f230c36c947669e9c7935c (diff) |
http_cache: change .headers.json to .metadata.json (#4175)
Add original URL to metadata. This is so the VS Code Plugin can reverse
look up the URL for cache entries. Ref #4069.
Diffstat (limited to 'cli/http_util.rs')
-rw-r--r-- | cli/http_util.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/http_util.rs b/cli/http_util.rs index 34140402d..05074fa4d 100644 --- a/cli/http_util.rs +++ b/cli/http_util.rs @@ -79,6 +79,9 @@ fn resolve_url_from_location(base_url: &Url, location: &str) -> Url { } } +// TODO(ry) HTTP headers are not unique key, value pairs. There may be more than +// one header line with the same key. This should be changed to something like +// Vec<(String, String)> pub type HeadersMap = HashMap<String, String>; #[derive(Debug, PartialEq)] |