Skip to content

Commit

Permalink
Do not add accept header on linkcheck
Browse files Browse the repository at this point in the history
It seems that this header causes "406 Not Acceptable" failures: https://github.com/rust-lang/rustc-dev-guide/actions/runs/4092776683/jobs/7057742900
  • Loading branch information
JohnTitor authored and tshepang committed Feb 6, 2023
1 parent 0591410 commit 7e9449a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7e9449a

Please sign in to comment.