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
pull/847/head
Tom Parker-Shemilt 4 years ago committed by GitHub
commit 396dcf669a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save