File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -154,8 +154,13 @@ async function checkLinks() {
154
154
headers : {
155
155
// Spoof a normal looking User-Agent to keep the servers happy
156
156
// See https://github.com/JustinBeckwith/linkinator/blob/main/src/index.ts
157
+ //
158
+ // To better future-proof against the ua string being
159
+ // responsible for any breakage, pull common, up-to-date strings
160
+ // from a reliable source.
161
+ // https://github.com/w3c/aria-practices/issues/3270
157
162
'User-Agent' :
158
- 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2 ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79 .0.3945.117 Safari/537.36 ' ,
163
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7 ) AppleWebKit/605.1.15 (KHTML, like Gecko) Chrome/134 .0.0.0 Safari/605.1.1 ' ,
159
164
} ,
160
165
} ) ;
161
166
const text = await response . text ( ) ;
You can’t perform that action at this time.
0 commit comments