aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/flow/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/js/flow/utils.js')
-rw-r--r--web/src/js/flow/utils.js2
1 files changed, 1 insertions, 1 deletions
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.