From 8bf8fdf66f77ad9a2e053b79eb956b6963e8cd5c 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 747567461..9170ceb70 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"