fix reference
This commit is contained in:
parent
28fd40fb43
commit
90d5b9ad78
1 changed files with 2 additions and 2 deletions
|
|
@ -58,8 +58,8 @@ function contentType(str) {
|
||||||
|
|
||||||
// TODO: use content-type or other module
|
// TODO: use content-type or other module
|
||||||
if (mime.indexOf('charset') === -1) {
|
if (mime.indexOf('charset') === -1) {
|
||||||
const charset = charset(mime);
|
const detected = charset(mime);
|
||||||
if (charset) mime += '; charset=' + charset.toLowerCase();
|
if (detected) mime += '; charset=' + detected.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
return mime;
|
return mime;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue