[evolution-data-server/gnome-3-8] Bug 699461 - Accept any 2xx HTTP code as successful DELETE



commit 18fa76937bd7fb39cec2c68de9c74095f7c9f808
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu May 2 14:48:28 2013 -0400

    Bug 699461 - Accept any 2xx HTTP code as successful DELETE
    
    (cherry picked from commit c80a95cd1bf12438bedac1b1b492c5719cbc901b)

 .../backends/webdav/e-book-backend-webdav.c        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/backends/webdav/e-book-backend-webdav.c 
b/addressbook/backends/webdav/e-book-backend-webdav.c
index 06ceee2..4079623 100644
--- a/addressbook/backends/webdav/e-book-backend-webdav.c
+++ b/addressbook/backends/webdav/e-book-backend-webdav.c
@@ -509,7 +509,7 @@ e_book_backend_webdav_remove_contacts (EBookBackend *backend,
        }
 
        status = delete_contact (webdav, uid, cancellable);
-       if (status != 204) {
+       if (!SOUP_STATUS_IS_SUCCESSFUL (status)) {
                if (status == 401 || status == 407) {
                        e_data_book_respond_remove_contacts (
                                book, opid,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]