Skip to content

Commit 04720cf

Browse files
committed
decode params
1 parent 867aa88 commit 04720cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ function parseBodyStructure(cur, literals, prefix, partID) {
507507
if (Array.isArray(cur[2])) {
508508
part.params = {};
509509
for (i = 0, len = cur[2].length; i < len; i += 2)
510-
part.params[cur[2][i].toLowerCase()] = cur[2][i + 1];
510+
part.params[cur[2][i].toLowerCase()] = decodeWords(cur[2][i + 1]);
511511
if (cur[1] === null)
512512
++next;
513513
}
@@ -554,7 +554,7 @@ function parseStructExtra(part, partLen, cur, next) {
554554
disposition.params = {};
555555
for (var i = 0, len = cur[next][1].length, key; i < len; i += 2) {
556556
key = cur[next][1][i].toLowerCase();
557-
disposition.params[key] = cur[next][1][i + 1];
557+
disposition.params[key] = decodeWords(cur[next][1][i + 1]);
558558
}
559559
}
560560
} else if (cur[next] !== null)

0 commit comments

Comments
 (0)