[librest/xml: 3/4] rest-proxy-call: save the content type params



commit 1e97f492ceae7fb6788c17ee5be062e81ae2e307
Author: Ross Burton <ross linux intel com>
Date:   Fri Aug 13 11:00:10 2010 +0100

    rest-proxy-call: save the content type params

 rest/rest-proxy-call-private.h |    1 +
 rest/rest-proxy-call.c         |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/rest/rest-proxy-call-private.h b/rest/rest-proxy-call-private.h
index 584a77b..58ed8a5 100644
--- a/rest/rest-proxy-call-private.h
+++ b/rest/rest-proxy-call-private.h
@@ -45,6 +45,7 @@ struct _RestProxyCallPrivate {
   gchar *payload;
   guint status_code;
   gchar *status_message;
+  GHashTable *content_params;
 
   RestProxy *proxy;
 
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c
index 22d78cd..2cb4990 100644
--- a/rest/rest-proxy-call.c
+++ b/rest/rest-proxy-call.c
@@ -592,6 +592,7 @@ finish_call (RestProxyCall *call, SoupMessage *message, GError **error)
       (SoupMessageHeadersForeachFunc)_populate_headers_hash_table,
       priv->response_headers);
 
+  soup_message_headers_get_content_type (message->response_headers, &priv->content_params);
   priv->payload = g_strdup (message->response_body->data);
   priv->length = message->response_body->length;
 



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