[evolution-data-server] Bug 699461 - Accept any 2xx HTTP code as successful DELETE
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug 699461 - Accept any 2xx HTTP code as successful DELETE
- Date: Thu, 2 May 2013 18:48:03 +0000 (UTC)
commit c80a95cd1bf12438bedac1b1b492c5719cbc901b
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
.../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 212d5b8..53d3999 100644
--- a/addressbook/backends/webdav/e-book-backend-webdav.c
+++ b/addressbook/backends/webdav/e-book-backend-webdav.c
@@ -1415,7 +1415,7 @@ book_backend_webdav_remove_contacts_sync (EBookBackend *backend,
}
status = delete_contact (webdav, uids[0], cancellable);
- if (status != 204) {
+ if (!SOUP_STATUS_IS_SUCCESSFUL (status)) {
if (status == 401 || status == 407) {
webdav_handle_auth_request (webdav, error);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]