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 8e09f81424
commit bfc84296e5

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;