Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dzlk17 committed Sep 25, 2024
1 parent 46e28e7 commit 9bfa9a1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions server/src/http/cloud/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,13 +327,9 @@ pub fn custom_validate_domain_name(domain_name: &String) -> anyhow::Result<Strin
println!("Root: {:?}", domain);
match parse_domain_name(domain) {
Ok(name) => {
println!("Domain name: {:?}", name);
println!("Suffix: {:?}", name.suffix());
println!("name{:?}", name.root());
return Ok(name.to_string());
}
Err(err) => {
println!("Error: {:?}", err);
warn!("Failed to convert domain name to ascii: {:?}", err);
bail!(CloudApiErrors::InvalidDomainName);
}
Expand All @@ -357,7 +353,7 @@ pub fn extract_domain_name(origin: &String) -> Result<String, String> {
Ok(domain_name.to_string())
}

// #[cfg(feature = "cloud_integration_tests")]
#[cfg(feature = "cloud_integration_tests")]
#[cfg(test)]
mod tests {
use super::*;
Expand Down

0 comments on commit 9bfa9a1

Please sign in to comment.