From 997b022b7cf6d03f8b1b4ac220c58349a553ea2c Mon Sep 17 00:00:00 2001 From: Jiajie Zhong Date: Mon, 24 Oct 2022 17:55:43 +0800 Subject: [PATCH] [doc][ci] Add http header to avoid github 403 in dlc (#12509) see more detail in https://github.com/tcort/markdown-link-check/issues/201 and we find can solve this by adding `httpHeaders` to fix it --- .dlc.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.dlc.json b/.dlc.json index d083458159..da44b95b8e 100644 --- a/.dlc.json +++ b/.dlc.json @@ -20,6 +20,14 @@ "replacement": "https://dolphinscheduler.apache.org/zh-cn/download/download.html" } ], + "httpHeaders": [ + { + "urls": ["https://docs.github.com/"], + "headers": { + "Accept-Encoding": "zstd, br, gzip, deflate" + } + } + ], "timeout": "10s", "retryOn429": true, "retryCount": 10,