mirror of
https://github.com/xvxx/phetch
synced 2024-11-10 13:10:54 +00:00
Show unknown types as binary (downloads)
This commit is contained in:
parent
7fb209206a
commit
cd350b15b9
@ -917,7 +917,7 @@ pub fn parse_line(start: usize, raw: &str) -> Option<Line> {
|
||||
} else {
|
||||
end
|
||||
};
|
||||
let typ = Type::from(line.chars().nth(0)?)?;
|
||||
let typ = Type::from(line.chars().next()?).unwrap_or(Type::Binary);
|
||||
|
||||
let mut truncated_len = if text_end - start > MAX_COLS {
|
||||
MAX_COLS + 1
|
||||
|
Loading…
Reference in New Issue
Block a user