diff options
author | Patrick Maia <pixelated-team+pmaia@thoughtworks.com> | 2014-10-22 14:30:32 -0300 |
---|---|---|
committer | Victor Shyba <victor.shyba@gmail.com> | 2014-10-22 17:27:24 -0300 |
commit | d677b1f2cd703f138bff023b3f27438a9d30a21d (patch) | |
tree | 781b73990e586ed0e0a206d325e84b43e314e48d | |
parent | babe973d950d9ee2246d2e55a4f75410a18daaf7 (diff) |
changes split token to not force service to add a blank space before header values
-rw-r--r-- | web-ui/app/js/services/model/mail.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web-ui/app/js/services/model/mail.js b/web-ui/app/js/services/model/mail.js index 89095948..9d1e8711 100644 --- a/web-ui/app/js/services/model/mail.js +++ b/web-ui/app/js/services/model/mail.js @@ -84,7 +84,7 @@ define(['helpers/contenttype'], headerLines = lines.slice(0, endOfHeaders); headers = _.map(headerLines, function (headerLine) { - return headerLine.split(': '); + return _.map(headerLine.split(':'), function(elem){return elem.trim()}); }); return _.object(headers); |