aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNik Nyby <nikolas@gnu.org>2015-06-16 19:37:46 -0400
committerNik Nyby <nikolas@gnu.org>2015-06-16 19:37:46 -0400
commit75f2e4dd4feb8eef00d128491b06dd3f49495d24 (patch)
tree32264aa4814e13d5b343ffc1a30de93c2caeb63e /lib
parent56145dbeec068762dc5e31a8d0f4e569f51afc8c (diff)
downloadlibrejsxul-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.js2
-rw-r--r--lib/http_observer/stream_loader.js2
-rw-r--r--lib/script_entries/crypto.js1
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) {