Skip to content

Commit

Permalink
decode params
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalyster committed Nov 20, 2018
1 parent 867aa88 commit 04720cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ function parseBodyStructure(cur, literals, prefix, partID) {
if (Array.isArray(cur[2])) {
part.params = {};
for (i = 0, len = cur[2].length; i < len; i += 2)
part.params[cur[2][i].toLowerCase()] = cur[2][i + 1];
part.params[cur[2][i].toLowerCase()] = decodeWords(cur[2][i + 1]);
if (cur[1] === null)
++next;
}
Expand Down Expand Up @@ -554,7 +554,7 @@ function parseStructExtra(part, partLen, cur, next) {
disposition.params = {};
for (var i = 0, len = cur[next][1].length, key; i < len; i += 2) {
key = cur[next][1][i].toLowerCase();
disposition.params[key] = cur[next][1][i + 1];
disposition.params[key] = decodeWords(cur[next][1][i + 1]);
}
}
} else if (cur[next] !== null)
Expand Down

0 comments on commit 04720cf

Please sign in to comment.