[couchdb-glib] Don't include non-OAuth URL parameters in OAuth header
- From: Rodrigo Moya <rodrigo src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [couchdb-glib] Don't include non-OAuth URL parameters in OAuth header
- Date: Tue, 6 Oct 2009 21:32:08 +0000 (UTC)
commit 5a38baf30b5c817036b2d87288e297b3031e4b27
Author: Rodrigo Moya <rodrigo gnome-db org>
Date: Tue Oct 6 23:31:15 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]