Correct usage of reqwest headers

This commit is contained in:
Vincent Prouillet 2018-09-30 20:20:26 +02:00
parent f5c88540ed
commit 9dca46cfd3

View file

@ -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();