diff --git a/src/js/mirrors.js b/src/js/mirrors.js index 9428b846e..4f109cd82 100644 --- a/src/js/mirrors.js +++ b/src/js/mirrors.js @@ -217,7 +217,7 @@ var toUrlKey = function(url) { var extractMimeType = function(ctin) { var pos = ctin.indexOf(';'); var type = pos === -1 ? ctin.trim() : ctin.slice(0, pos).trim(); - var charset = pos === -1 ? '' : ctin.slice(pos).trim(); + var charset = pos === -1 ? '' : ctin.slice(pos + 1).trim(); if ( charset !== '' ) { return type + ';' + charset; }