diff options
author | Nik Nyby <nikolas@gnu.org> | 2015-06-16 19:37:46 -0400 |
---|---|---|
committer | Nik Nyby <nikolas@gnu.org> | 2015-06-16 19:37:46 -0400 |
commit | 75f2e4dd4feb8eef00d128491b06dd3f49495d24 (patch) | |
tree | 32264aa4814e13d5b343ffc1a30de93c2caeb63e /lib | |
parent | 56145dbeec068762dc5e31a8d0f4e569f51afc8c (diff) | |
download | librejsxul-75f2e4dd4feb8eef00d128491b06dd3f49495d24.tar.lz librejsxul-75f2e4dd4feb8eef00d128491b06dd3f49495d24.tar.xz librejsxul-75f2e4dd4feb8eef00d128491b06dd3f49495d24.zip |
Attempts to fix crypto test failure
> Promise rejection: Error: loop is not enabled
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http_observer/process_response.js | 2 | ||||
-rw-r--r-- | lib/http_observer/stream_loader.js | 2 | ||||
-rw-r--r-- | lib/script_entries/crypto.js | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/lib/http_observer/process_response.js b/lib/http_observer/process_response.js index 000daa2..ae643ab 100644 --- a/lib/http_observer/process_response.js +++ b/lib/http_observer/process_response.js @@ -391,7 +391,7 @@ var processResponseObject = { ) { converter.charset = this.req.contentCharset; } else { - converter.charset = "utf-8"; + converter.charset = "UTF-8"; } var stream = converter.convertToInputStream(this.data); diff --git a/lib/http_observer/stream_loader.js b/lib/http_observer/stream_loader.js index 09b4a63..ec21cb7 100644 --- a/lib/http_observer/stream_loader.js +++ b/lib/http_observer/stream_loader.js @@ -148,7 +148,7 @@ StreamListener.prototype.onDetermineCharset = function onDetermineCharset( loader.channel.contentCharset = match[1]; return match[1]; } else { - return "utf-8"; + return "UTF-8"; } } }; diff --git a/lib/script_entries/crypto.js b/lib/script_entries/crypto.js index 5fb920f..d8d9c0a 100644 --- a/lib/script_entries/crypto.js +++ b/lib/script_entries/crypto.js @@ -34,7 +34,6 @@ CryptoString.prototype.init = function(hashAlgorithm, charset) { this.converter.charset = charset; this.hashAlgorithm = hashAlgorithm; this.cryptoHash.init(this.cryptoHash[this.hashAlgorithm]); - }; CryptoString.prototype.encryptString = function(str) { |