From 39a8ac7e2a405b84edc55289cb8bdfb2ac1948fa Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 22 Mar 2015 15:19:35 +0100 Subject: web: improve views --- web/src/js/flow/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/src/js/flow/utils.js') diff --git a/web/src/js/flow/utils.js b/web/src/js/flow/utils.js index a67db94f..29462a78 100644 --- a/web/src/js/flow/utils.js +++ b/web/src/js/flow/utils.js @@ -3,7 +3,7 @@ var $ = require("jquery"); var MessageUtils = { getContentType: function (message) { - return this.get_first_header(message, /^Content-Type$/i); + return this.get_first_header(message, /^Content-Type$/i).split(";")[0].trim(); }, get_first_header: function (message, regex) { //FIXME: Cache Invalidation. -- cgit v1.2.3