From c609986c53ba3c01f7a90e12ffb1d6988cd7ba3d Mon Sep 17 00:00:00 2001 From: Jake Macdonald Date: Tue, 20 Feb 2024 19:24:55 +0000 Subject: [PATCH 1/2] try configuring the link checker to send a user agent to stack overflow URLs --- mlc_config.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 mlc_config.json diff --git a/mlc_config.json b/mlc_config.json new file mode 100644 index 000000000..0e4062edf --- /dev/null +++ b/mlc_config.json @@ -0,0 +1,12 @@ +{ + "httpHeaders": [ + { + "urls": [ + "https://stackoverflow.com" + ], + "headers": { + "User-Agent": "dart-lang/build Link Checker" + } + } + ] +} From ed0e71be697716eacbc6e8ca4ac2eeb11506f348 Mon Sep 17 00:00:00 2001 From: Jake Macdonald Date: Tue, 20 Feb 2024 19:28:05 +0000 Subject: [PATCH 2/2] just ignore stack overflow links instead --- mlc_config.json | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/mlc_config.json b/mlc_config.json index 0e4062edf..0c6ec5fa5 100644 --- a/mlc_config.json +++ b/mlc_config.json @@ -1,12 +1,7 @@ { - "httpHeaders": [ + "ignorePatterns": [ { - "urls": [ - "https://stackoverflow.com" - ], - "headers": { - "User-Agent": "dart-lang/build Link Checker" - } + "pattern": "^https://stackoverflow.com" } ] }