Bug 1009264 - Strip trailing slash from services.sync.tokenServerURI. r=ckarlof

This commit is contained in:
Mark Hammond 2014-05-19 09:53:54 +10:00
parent f31a524186
commit 0d7b238760

View File

@ -441,6 +441,9 @@ this.BrowserIDManager.prototype = {
// Refresh the sync token for our user.
_fetchTokenForUser: function() {
let tokenServerURI = Svc.Prefs.get("tokenServerURI");
if (tokenServerURI.endsWith("/")) { // trailing slashes cause problems...
tokenServerURI = tokenServerURI.slice(0, -1);
}
let log = this._log;
let client = this._tokenServerClient;
let fxa = this._fxaService;