From f3475aedc283a0e8a73bb02a127341e41882d7fd Mon Sep 17 00:00:00 2001 From: gorhill Date: Fri, 16 Jan 2015 18:08:40 -0500 Subject: [PATCH] code review: fixed double semi-column --- src/js/mirrors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }