mirror of
https://github.com/Hopiu/lychee.git
synced 2026-03-17 05:00:26 +00:00
fix: Treat sites with 403 status codes as broken links (#1377)
This commit is contained in:
parent
13f4339710
commit
0d5601ce9e
2 changed files with 2 additions and 6 deletions
|
|
@ -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.
|
||||
|
||||
[default: 100..=103,200..=299,403..=403]
|
||||
[default: 100..=103,200..=299]
|
||||
|
||||
--include-fragments
|
||||
Enable the checking of fragments in links
|
||||
|
|
|
|||
|
|
@ -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)])
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue