Skip to content

Commit d1abe67

Browse files
committed
[rust] Include html extension for logging content when wrong driver download
1 parent 65d2cc6 commit d1abe67

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rust/src/files.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const CACHE_FOLDER: &str = ".cache/selenium";
3737
const ZIP: &str = "zip";
3838
const GZ: &str = "gz";
3939
const XML: &str = "xml";
40+
const HTML: &str = "html";
4041

4142
#[derive(Hash, Eq, PartialEq, Debug)]
4243
pub struct BrowserPath {
@@ -77,7 +78,7 @@ pub fn uncompress(
7778
unzip(file, target, log)?
7879
} else if extension.eq_ignore_ascii_case(GZ) {
7980
untargz(file, target, log)?
80-
} else if extension.eq_ignore_ascii_case(XML) {
81+
} else if extension.eq_ignore_ascii_case(XML) || extension.eq_ignore_ascii_case(HTML) {
8182
log.debug(format!(
8283
"Wrong downloaded driver: {}",
8384
fs::read_to_string(compressed_file).unwrap_or_default()

0 commit comments

Comments
 (0)