various bugfixes
This commit is contained in:
@@ -47,23 +47,6 @@ impl Requester {
|
||||
self.proxy = proxy;
|
||||
}
|
||||
|
||||
// pub fn set_flaresolverr_session(&mut self, session: String) {
|
||||
// self.flaresolverr_session = Some(session);
|
||||
// }
|
||||
|
||||
// fn get_url_from_location_header(&self, prev_url: &str, location: &str) -> String {
|
||||
// if location.starts_with("http://") || location.starts_with("https://") {
|
||||
// location.to_string()
|
||||
// } else if location.starts_with("//") {
|
||||
// format!("{}{}", "https:", location)
|
||||
// } else if location.starts_with('/') {
|
||||
// let base_url = prev_url.split('/').take(3).collect::<Vec<&str>>().join("/");
|
||||
// format!("{}{}", base_url, location)
|
||||
// } else {
|
||||
// format!("{}/{}", prev_url, location)
|
||||
// }
|
||||
// }
|
||||
|
||||
pub async fn get_raw(&mut self, url: &str) -> Result<Response, wreq::Error> {
|
||||
let client = Client::builder()
|
||||
.cert_verification(false)
|
||||
|
||||
Reference in New Issue
Block a user