summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhackademix2018-08-01 18:53:38 +0200
committerhackademix2018-08-01 18:53:38 +0200
commitce541c4a53679934e349b2bc85b2b18843a4146d (patch)
tree7b3a64d4b1ca6410eaa76a3a21acbaf44d8e5cc2 /src
parent9782ab02d53e9c37100d8e3e976fa4d90c1c1abe (diff)
downloadnoscript-ce541c4a53679934e349b2bc85b2b18843a4146d.tar.gz
noscript-ce541c4a53679934e349b2bc85b2b18843a4146d.tar.xz
noscript-ce541c4a53679934e349b2bc85b2b18843a4146d.zip
Broader detection of UTF-8 encoding in responses.
Diffstat (limited to 'src')
-rw-r--r--src/lib/ResponseMetaData.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ResponseMetaData.js b/src/lib/ResponseMetaData.js
index 17e1608..0d86745 100644
--- a/src/lib/ResponseMetaData.js
+++ b/src/lib/ResponseMetaData.js
@@ -27,7 +27,7 @@ class ResponseMetaData {
}
get isUTF8() {
- return /^utf-8$/i.test(this.charset);
+ return /^utf-?8$/i.test(this.charset);
}
forceUTF8() {