adapted proxies
This commit is contained in:
@@ -66,7 +66,7 @@ impl PornhatProvider {
|
||||
if response.status().is_redirection(){
|
||||
println!("Redirection detected, following to: {}", response.headers()["Location"].to_str().unwrap());
|
||||
response = client.get(response.headers()["Location"].to_str().unwrap())
|
||||
// .proxy(proxy)
|
||||
// .proxy(proxy.clone())
|
||||
.send().await?;
|
||||
}
|
||||
if response.status().is_success() {
|
||||
@@ -146,7 +146,7 @@ impl PornhatProvider {
|
||||
if response.status().is_redirection(){
|
||||
|
||||
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
||||
// .proxy(proxy)
|
||||
// .proxy(proxy.clone())
|
||||
.send().await?;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user