[couchdb-glib] Avoid warning in send_message when using username/password auth



commit 900ab35688241535a4cbb61d5fc448b4f952d3f8
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Thu Oct 6 16:01:48 2011 +0200

    Avoid warning in send_message when using username/password auth

 couchdb-glib/couchdb-session.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/couchdb-glib/couchdb-session.c b/couchdb-glib/couchdb-session.c
index 277fea8..61941c2 100644
--- a/couchdb-glib/couchdb-session.c
+++ b/couchdb-glib/couchdb-session.c
@@ -732,6 +732,9 @@ couchdb_session_send_message (CouchdbSession *session, const char *method, const
 		case COUCHDB_CREDENTIALS_TYPE_OAUTH:
 			add_oauth_signature (session, http_message, method, url);
 			break;
+		case COUCHDB_CREDENTIALS_TYPE_USERNAME_AND_PASSWORD:
+			/* We don't do anything here, but avoid the warning below */
+			break;
 		default:
 			g_warning ("Got unknown credentials object, not authenticating message");
 		}



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