1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-17 06:52:26 +01:00

Don't resolve empty Etags as valid.

This commit is contained in:
Thomas Tanghus 2013-09-06 18:16:35 +02:00
parent 0c23565b85
commit 92f99e6925

View File

@ -2459,7 +2459,7 @@ OC.Contacts = OC.Contacts || {};
console.log('HEAD response', response);
console.log('HEAD Etag', etag);
console.log('Saved Etag', data.Etag);
if(etag === data.Etag) {
if(etag && etag === data.Etag) {
console.log('Returning saved data');
self.insertContacts(data.contacts);
defer.resolve();