From 0d798c3896f69eb22096b6451340d24c34f66cf2 Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Wed, 26 Feb 2020 21:26:18 +0000 Subject: [PATCH] Github workflows have started to do 406, unless we add an explicit image to the Accept header --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 9fbe172..fa70793 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 {