Spaces:
Runtime error
Runtime error
Merge branch 'rolling' into fix-useless-use-of-format!
Browse files- Cargo.lock +1 -1
- Cargo.toml +1 -1
- src/engines/searx.rs +4 -4
Cargo.lock
CHANGED
@@ -4066,7 +4066,7 @@ checksum = "1778a42e8b3b90bff8d0f5032bf22250792889a5cdc752aa0020c84abe3aaf10"
|
|
4066 |
|
4067 |
[[package]]
|
4068 |
name = "websurfx"
|
4069 |
-
version = "1.5.
|
4070 |
dependencies = [
|
4071 |
"actix-cors",
|
4072 |
"actix-files",
|
|
|
4066 |
|
4067 |
[[package]]
|
4068 |
name = "websurfx"
|
4069 |
+
version = "1.5.2"
|
4070 |
dependencies = [
|
4071 |
"actix-cors",
|
4072 |
"actix-files",
|
Cargo.toml
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
[package]
|
2 |
name = "websurfx"
|
3 |
-
version = "1.5.
|
4 |
edition = "2021"
|
5 |
description = "An open-source alternative to Searx that provides clean, ad-free, and organic results with incredible speed while keeping privacy and security in mind."
|
6 |
repository = "https://github.com/neon-mmd/websurfx"
|
|
|
1 |
[package]
|
2 |
name = "websurfx"
|
3 |
+
version = "1.5.2"
|
4 |
edition = "2021"
|
5 |
description = "An open-source alternative to Searx that provides clean, ad-free, and organic results with incredible speed while keeping privacy and security in mind."
|
6 |
repository = "https://github.com/neon-mmd/websurfx"
|
src/engines/searx.rs
CHANGED
@@ -52,11 +52,11 @@ impl SearchEngine for Searx {
|
|
52 |
|
53 |
let url: String = match page {
|
54 |
0 | 1 => {
|
55 |
-
format!("https://searx.
|
|
|
|
|
|
|
56 |
}
|
57 |
-
_ => format!(
|
58 |
-
"https://searx.work/search?q={query}&pageno={page}&safesearch={safe_search}"
|
59 |
-
),
|
60 |
};
|
61 |
|
62 |
// initializing headers and adding appropriate headers.
|
|
|
52 |
|
53 |
let url: String = match page {
|
54 |
0 | 1 => {
|
55 |
+
format!("https://searx.be/search?q={query}&pageno=1&safesearch={safe_search}")
|
56 |
+
}
|
57 |
+
_ => {
|
58 |
+
format!("https://searx.be/search?q={query}&pageno={page}&safesearch={safe_search}")
|
59 |
}
|
|
|
|
|
|
|
60 |
};
|
61 |
|
62 |
// initializing headers and adding appropriate headers.
|