From 9dca46cfd3afc06fd9426bac7dfb05a819ea9058 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Sun, 30 Sep 2018 20:20:26 +0200 Subject: [PATCH] Correct usage of reqwest headers --- components/link_checker/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/link_checker/src/lib.rs b/components/link_checker/src/lib.rs index 5a59d132..5cb532aa 100644 --- a/components/link_checker/src/lib.rs +++ b/components/link_checker/src/lib.rs @@ -55,7 +55,8 @@ pub fn check_url(url: &str) -> LinkResult { } let mut headers = HeaderMap::new(); - headers.insert(ACCEPT, "text/html, *".parse().unwrap()); + headers.insert(ACCEPT, "text/html".parse().unwrap()); + headers.append(ACCEPT, "*/*".parse().unwrap()); let client = reqwest::Client::new();