Correct usage of reqwest headers
This commit is contained in:
parent
f5c88540ed
commit
9dca46cfd3
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue