mirror of
https://github.com/edu4rdshl/fhc.git
synced 2026-07-17 23:24:50 +00:00
Remove debug code.
This commit is contained in:
parent
e3a30a65e1
commit
22540ade30
1 changed files with 1 additions and 20 deletions
21
src/main.rs
21
src/main.rs
|
|
@ -128,26 +128,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
valid_url = http_url.to_string();
|
||||
response_code = resp.status().as_u16()
|
||||
}
|
||||
// Code for debugging issues when needed
|
||||
// match https_send_fut.await {
|
||||
// Ok(resp) => {
|
||||
// valid_url = https_url.to_string();
|
||||
// response_code = resp.status().as_u16();
|
||||
// }
|
||||
// Err(e) => {
|
||||
// println!(
|
||||
// "Err checking {}, description: {}\n Trying HTTP...",
|
||||
// https_url, e
|
||||
// );
|
||||
// match http_send_fut.await {
|
||||
// Ok(resp) => {
|
||||
// valid_url = http_url.to_string();
|
||||
// response_code = resp.status().as_u16();
|
||||
// }
|
||||
// Err(e) => println!("Err checking {}, description: {}", http_url, e),
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
if (!valid_url.is_empty() && conditional_response_code == 0)
|
||||
|| ((!valid_url.is_empty() && conditional_response_code != 0)
|
||||
&& (response_code >= conditional_response_code
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue