From a80f180a468354e8e3bc330b6f7bf2bc1adf2d80 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sun, 5 Feb 2023 17:35:18 +0900 Subject: [PATCH] Do not add accept header on linkcheck It seems that this header causes "406 Not Acceptable" failures: https://github.com/rust-lang/rustc-dev-guide/actions/runs/4092776683/jobs/7057742900 --- book.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book.toml b/book.toml index 74756746..9170ceb7 100644 --- a/book.toml +++ b/book.toml @@ -41,7 +41,7 @@ cache-timeout = 86400 warning-policy = "error" [output.linkcheck.http-headers] -'github\.com' = ["Accept: application/vnd.github+json", "Authorization: Bearer $GITHUB_TOKEN"] +'github\.com' = ["Authorization: Bearer $GITHUB_TOKEN"] [output.html.redirect] "/compiletest.html" = "tests/compiletest.html"