Bug 986936 - No update to iCloud caldav possible since March 2014. r+a=philipp

This commit is contained in:
t-master 2014-05-02 22:33:27 +02:00
Родитель da3ea2b403
Коммит c95b41cbee
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -603,6 +603,14 @@ webDavSyncHandler.prototype = {
// The 507 doesn't mean the data received is invalid, so
// continue processing.
this.additionalSyncNeeded = true;
} else if (r.status &&
r.status.indexOf(" 200") &&
r.href &&
r.href.endsWith("/")) {
// iCloud returns status responses for directories too
// so we just ignore them if they have status code 200. We
// want to make sure these are not counted as unhandled
// errors in the next block
} else if ((r.getcontenttype &&
r.getcontenttype.substr(0,13) == "text/calendar") ||
(r.status &&