0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-11-25 07:28:22 -05:00

feat: define common behaviour for all engines

This commit is contained in:
neon_arch 2023-07-14 17:17:05 +03:00
parent c223fed394
commit 27247baf0c

View File

@ -53,7 +53,7 @@ pub trait SearchEngine {
// fetch the html from upstream search engine
Ok(reqwest::Client::new()
.get(url)
.timeout(Duration::from_secs(5))
.timeout(Duration::from_secs(30))
.headers(header_map) // add spoofed headers to emulate human behaviour
.send()
.await