[couchdb-glib/gnome-2-28] Don't include non-OAuth URL parameters in OAuth header



commit 6f279d2698d1b9c9f9a82286915130e47fa6950b
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Tue Oct 6 23:37:49 2009 +0200

    Don't include non-OAuth URL parameters in OAuth header
    Return TRUE in couchdb_document_delete when successful

 couchdb-glib/couchdb-document.c |    1 +
 couchdb-glib/utils.c            |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/couchdb-glib/couchdb-document.c b/couchdb-glib/couchdb-document.c
index 064e1a5..9e59ea1 100644
--- a/couchdb-glib/couchdb-document.c
+++ b/couchdb-glib/couchdb-document.c
@@ -178,6 +178,7 @@ couchdb_document_delete (CouchDBDocument *document, GError **error)
 	parser = send_message_and_parse (document->couchdb, SOUP_METHOD_DELETE, url, NULL, error);
 	if (parser) {
 		g_object_unref (G_OBJECT (parser));
+		result = TRUE;
 
 		g_signal_emit_by_name (document->couchdb, "document_deleted", document->dbname, id);
 	}
diff --git a/couchdb-glib/utils.c b/couchdb-glib/utils.c
index fce7aa0..fa0c1d0 100644
--- a/couchdb-glib/utils.c
+++ b/couchdb-glib/utils.c
@@ -104,6 +104,9 @@ add_oauth_signature (CouchDB *couchdb, SoupMessage *http_message, const char *me
 			for (i = 0; params[i] != NULL; i++) {
 				gchar **url_param;
 
+				if (!g_str_has_prefix (params[i], "oauth_"))
+					continue;
+
 #ifdef DEBUG_OAUTH
 				g_debug ("%s\n", params[i]);
 #endif



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