1
0
mirror of https://github.com/arduino/library-registry.git synced 2025-07-31 01:03:09 +03:00

Configure link check to use Accept-Encoding header for docs.github.com links

The link check job of the "Check Markdown" workflow has 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 does appear to resolve
the problem.

Since the problem seems to be permanent and the only other workarounds I have identified are unappealing (considering
links returning 403 statuses alive, or ignoring all docs.github.com links), I think it is worth a try.
This commit is contained in:
per1234
2022-05-30 09:07:39 -07:00
parent c41e202982
commit 90bb1247cc

View File

@ -1,4 +1,12 @@
{
"httpHeaders": [
{
"urls": ["https://docs.github.com/"],
"headers": {
"Accept-Encoding": "gzip, deflate, br"
}
}
],
"retryOn429": true,
"retryCount": 3,
"aliveStatusCodes": [200, 206]