Skip to content

Commit

Permalink
fix(decoderHeaderStr): fix issue that decodedHeaderStr is undefined i…
Browse files Browse the repository at this point in the history
…f decodeWords fails ZMS-179 (#24)
  • Loading branch information
NickOvt authored Oct 14, 2024
1 parent 7d1aecf commit c25d46e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function decodeHeaderLineIntoKeyValuePair(headerLine) {
decodedHeaderStr = libmime.decodeWords(headerValue);
} catch (err) {
// keep the value as is
decodedHeaderStr = headerValue;
}

return [headerKey.trim(), decodedHeaderStr.trim()];
Expand Down

0 comments on commit c25d46e

Please sign in to comment.