diff options
Diffstat (limited to 'cli/http_util.rs')
-rw-r--r-- | cli/http_util.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/http_util.rs b/cli/http_util.rs index 12e70e3e7..2278afc8d 100644 --- a/cli/http_util.rs +++ b/cli/http_util.rs @@ -117,6 +117,15 @@ pub fn fetch_once( let mut headers_: HashMap<String, String> = HashMap::new(); let headers = response.headers(); + + if let Some(warning) = headers.get("X-Deno-Warning") { + eprintln!( + "{} {}", + crate::colors::yellow("Warning".to_string()), + warning.to_str().unwrap() + ); + } + for key in headers.keys() { let key_str = key.to_string(); let values = headers.get_all(key); |