зеркало из https://github.com/mozilla/pjs.git
workaround for services.m.c 500 error on some GET requests
This commit is contained in:
Родитель
a31ac97660
Коммит
4fd10f52ed
|
@ -341,6 +341,13 @@ WeaveSyncService.prototype = {
|
||||||
throw "Created user directory, but login still failed. Aborting.";
|
throw "Created user directory, but login still failed. Aborting.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: remove this after services.m.c gets fixed to not
|
||||||
|
// return 500 from a GET when parent dirs don't exist
|
||||||
|
this._dav.MKCOL("private/", self.cb);
|
||||||
|
ret = yield;
|
||||||
|
if (!ret)
|
||||||
|
throw "Could not create private key directory";
|
||||||
|
|
||||||
this._dav.GET("private/privkey", self.cb);
|
this._dav.GET("private/privkey", self.cb);
|
||||||
let keyResp = yield;
|
let keyResp = yield;
|
||||||
Utils.ensureStatus(keyResp.status,
|
Utils.ensureStatus(keyResp.status,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче