diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-09-15 13:49:41 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-09-16 13:11:29 +0300 |
commit | 366e557e1cc96a7f9b12c10f28f088d2ef4712cb (patch) | |
tree | e90cd74ca6f586c21fb13a819194022b0b3f677a /melib/src/email/attachments.rs | |
parent | 9b0180fdbc76fded5c935bcf60a1fa034327d9ef (diff) |
melib/email: don't do case sensitive eq for mime parameters
Diffstat (limited to 'melib/src/email/attachments.rs')
-rw-r--r-- | melib/src/email/attachments.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/melib/src/email/attachments.rs b/melib/src/email/attachments.rs index e7d95906..f286ccbe 100644 --- a/melib/src/email/attachments.rs +++ b/melib/src/email/attachments.rs @@ -390,7 +390,7 @@ impl fmt::Display for Attachment { let name = String::from_utf8_lossy( parameters .iter() - .find(|(name, _)| name == b"name") + .find(|(name, _)| name.eq_ignore_ascii_case(b"name")) .map(|(_, value)| value) .unwrap(), ); |