fixes and cleanup
This commit is contained in:
@@ -57,10 +57,7 @@ pub struct Flaresolverr {
|
||||
|
||||
impl Flaresolverr {
|
||||
pub fn new(url: String) -> Self {
|
||||
Self {
|
||||
url,
|
||||
proxy: false,
|
||||
}
|
||||
Self { url, proxy: false }
|
||||
}
|
||||
|
||||
pub fn set_proxy(&mut self, proxy: bool) {
|
||||
@@ -71,9 +68,7 @@ impl Flaresolverr {
|
||||
&self,
|
||||
request: FlareSolverrRequest,
|
||||
) -> Result<FlareSolverrResponse, Box<dyn std::error::Error>> {
|
||||
let client = Client::builder()
|
||||
.emulation(Emulation::Firefox136)
|
||||
.build()?;
|
||||
let client = Client::builder().emulation(Emulation::Firefox136).build()?;
|
||||
|
||||
let mut req = client
|
||||
.post(&self.url)
|
||||
|
||||
Reference in New Issue
Block a user