aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhackademix <giorgio@maone.net>2018-08-01 18:52:41 +0200
committerhackademix <giorgio@maone.net>2018-08-01 18:52:41 +0200
commitb5b7957ac5d1a3bb7e8dc25fffdbde1c1c073db9 (patch)
treeba5e856862a6d2ee2bccb5b8dc5bf025c02020ea
parent13ea9430ff74174b0e1043119e4d855259b62a30 (diff)
Broader detection of UTF-8 encoding in responses.
-rw-r--r--bg/ResponseMetaData.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bg/ResponseMetaData.js b/bg/ResponseMetaData.js
index 40ca3f3..41d1fe9 100644
--- a/bg/ResponseMetaData.js
+++ b/bg/ResponseMetaData.js
@@ -53,7 +53,7 @@ class ResponseMetaData {
}
get isUTF8() {
- return /^utf-8$/i.test(this.charset);
+ return /^utf-?8$/i.test(this.charset);
}
forceUTF8() {