Skip to content

Commit c23f220

Browse files
Lets not treat https code 401 as broken link (Azure#22072)
Http Status code 401 just be unauthorized and not necessarily that the link isn't valid. Removing this from the list of codes to error from. Co-authored-by: Wes Haggard <[email protected]>
1 parent 0d3efbd commit c23f220

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eng/common/scripts/Verify-Links.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
Path to the root of the site for resolving rooted relative links, defaults to host root for http and file directory for local files.
2626
2727
.PARAMETER errorStatusCodes
28-
List of http status codes that count as broken links. Defaults to 400, 401, 404, SocketError.HostNotFound = 11001, SocketError.NoData = 11004.
28+
List of http status codes that count as broken links. Defaults to 400, 404, SocketError.HostNotFound = 11001, SocketError.NoData = 11004.
2929
3030
.PARAMETER branchReplaceRegex
3131
Regex to check if the link needs to be replaced. E.g. ^(https://github.com/.*/(?:blob|tree)/)main(/.*)$
@@ -65,7 +65,7 @@ param (
6565
[switch] $recursive = $true,
6666
[string] $baseUrl = "",
6767
[string] $rootUrl = "",
68-
[array] $errorStatusCodes = @(400, 401, 404, 11001, 11004),
68+
[array] $errorStatusCodes = @(400, 404, 11001, 11004),
6969
[string] $branchReplaceRegex = "",
7070
[string] $branchReplacementName = "",
7171
[bool] $checkLinkGuidance = $false,

0 commit comments

Comments
 (0)