1
0
Fork 0
mirror of https://github.com/rust-unofficial/awesome-rust.git synced 2024-11-27 11:44:52 -05:00

Fix accept header so we also get github svgs

This commit is contained in:
Tom Parker-Shemilt 2020-01-13 21:53:25 +00:00
parent a6b79d73ec
commit ff703bac03

View file

@ -72,7 +72,7 @@ async fn get_url(url: String) -> (String, Result<String>) {
debug!("Running {}", url);
let resp = CLIENT
.get(&url)
.header(header::ACCEPT, "text/html")
.header(header::ACCEPT, "text/html, */*;q=0.8")
.send()
.await;
match resp {