workaround for services.m.c 500 error on some GET requests

This commit is contained in:
Dan Mills 2008-03-12 23:06:28 -07:00
Родитель a31ac97660
Коммит 4fd10f52ed
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -341,6 +341,13 @@ WeaveSyncService.prototype = {
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);
let keyResp = yield;
Utils.ensureStatus(keyResp.status,