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:
parent
c223fed394
commit
27247baf0c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user