Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Treat sites with 403 status codes as broken links #1377

Merged
merged 2 commits into from Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -400,7 +400,7 @@ Options:
separated list of accepted status codes. This example will accept 200, 201,
202, 203, 204, 429, and 500 as valid status codes.
mre marked this conversation as resolved.
Show resolved Hide resolved

[default: 100..=103,200..=299,403..=403]
[default: 100..=103,200..=299]

--include-fragments
Enable the checking of fragments in links
Expand Down
6 changes: 1 addition & 5 deletions lychee-lib/src/types/accept/selector.rs
Expand Up @@ -42,11 +42,7 @@ impl FromStr for AcceptSelector {

impl Default for AcceptSelector {
fn default() -> Self {
Self::new_from(vec![
AcceptRange::new(100, 103),
AcceptRange::new(200, 299),
AcceptRange::new(403, 403),
])
Self::new_from(vec![AcceptRange::new(100, 103), AcceptRange::new(200, 299)])
}
}

Expand Down