code review: fixed double semi-column

This commit is contained in:
gorhill 2015-01-16 18:08:40 -05:00
parent 554129648d
commit f3475aedc2
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}