Skip to content

Commit 87ff1db

Browse files
committed
Configure link check to use Accept-Encoding header for docs.github.com links
The link check job of the "Check Markdown" workflow had frequent intermittent spurious failures recently, caused by links under the docs.github.com domain returning 403 HTTP status. Others experiencing the same problem reported that they were able to work around the problem by providing a custom `Accept-Encoding` HTTP request header. Although I was not able to find any explanation of why, it did appear to resolve the problem. This is a change that was made in the upstream "template" this file is based on. I don't know whether or not the workaround is still necessary (I haven't experienced any spurious link check failures from this domain recently, but that might be due to the workaround having been implemented in many of the repositories), but it does no harm so it is best to sync with the upstream "template" file regardless.
1 parent 27f7506 commit 87ff1db

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.markdown-link-check.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{
2+
"httpHeaders": [
3+
{
4+
"urls": ["https://docs.github.com/"],
5+
"headers": {
6+
"Accept-Encoding": "gzip, deflate, br"
7+
}
8+
}
9+
],
210
"retryOn429": true,
311
"retryCount": 3,
412
"aliveStatusCodes": [200, 206]

0 commit comments

Comments
 (0)