Skip to content

Commit 86fb0b6

Browse files
committed
altering server_host in about:config shouldn't require a restart
1 parent 34ad512 commit 86fb0b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/ssl-observatory.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,10 @@ SSLObservatory.prototype = {
412412
buildRequest: function(params) {
413413
var req = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"]
414414
.createInstance(Ci.nsIXMLHttpRequest);
415+
416+
// We do this again in case the user altered about:config
417+
var host=this.prefs.getCharPref("extensions.https_everywhere._observatory.server_host");
418+
this.submit_url = "https://" + host + "/submit_cert";
415419
req.open("POST", this.submit_url+this.csrf_nonce, true);
416420

417421
// Send the proper header information along with the request

0 commit comments

Comments
 (0)