Broader detection of UTF-8 encoding in responses.

This commit is contained in:
hackademix 2018-08-01 18:53:38 +02:00
parent 9782ab02d5
commit ce541c4a53
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class ResponseMetaData {
}
get isUTF8() {
return /^utf-8$/i.test(this.charset);
return /^utf-?8$/i.test(this.charset);
}
forceUTF8() {