From ce541c4a53679934e349b2bc85b2b18843a4146d Mon Sep 17 00:00:00 2001 From: hackademix Date: Wed, 1 Aug 2018 18:53:38 +0200 Subject: Broader detection of UTF-8 encoding in responses. --- src/lib/ResponseMetaData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') 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() { -- cgit v1.2.3