Merge pull request #845 from palfrey/github-workflows-accept

Github workflows have started to do 406, unless we add an explicit image to the Accept header
This commit is contained in:
Tom Parker-Shemilt 2020-02-26 21:44:13 +00:00 committed by GitHub
commit 396dcf669a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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