Skip to content

Commit

Permalink
chore(website): fix page empty status
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Feb 16, 2025
1 parent b423812 commit a21a1c6
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 15 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion spider/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider"
version = "2.28.1"
version = "2.28.2"
authors = [
"j-mendez <[email protected]>"
]
Expand Down
5 changes: 4 additions & 1 deletion spider/src/website.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2425,10 +2425,13 @@ impl Website {
let links = if !page_links.is_empty() {
page_links
} else {
self.status = CrawlStatus::Empty;
Default::default()
};

if page.is_empty() {
self.status = CrawlStatus::Empty;
}

self.initial_status_code = page.status_code;

if page.status_code == reqwest::StatusCode::FORBIDDEN {
Expand Down
2 changes: 1 addition & 1 deletion spider_chrome/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_chrome"
version = "2.28.1"
version = "2.28.2"
rust-version = "1.70"
authors = [
"j-mendez <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion spider_cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_cli"
version = "2.28.1"
version = "2.28.2"
authors = [
"j-mendez <[email protected]>"
]
Expand Down
2 changes: 1 addition & 1 deletion spider_firewall/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_firewall"
version = "2.28.1"
version = "2.28.2"
authors = [
"j-mendez <[email protected]>"
]
Expand Down
2 changes: 1 addition & 1 deletion spider_transformations/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_transformations"
version = "2.28.1"
version = "2.28.2"
authors = [
"j-mendez <[email protected]>"
]
Expand Down
2 changes: 1 addition & 1 deletion spider_utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_utils"
version = "2.28.1"
version = "2.28.2"
authors = [
"j-mendez <[email protected]>"
]
Expand Down
2 changes: 1 addition & 1 deletion spider_worker/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_worker"
version = "2.28.1"
version = "2.28.2"
authors = [
"j-mendez <[email protected]>"
]
Expand Down

0 comments on commit a21a1c6

Please sign in to comment.