summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2010-08-13 11:00:10 +0100
committerRoss Burton <ross@linux.intel.com>2010-10-05 13:03:53 +0100
commit1e97f492ceae7fb6788c17ee5be062e81ae2e307 (patch)
treeff499ec73f01f105ccca07df8f8662510cf13f4f
parent96e60c57663e949c34a248ac62ffa86da1c636aa (diff)
downloadlibrest-1e97f492ceae7fb6788c17ee5be062e81ae2e307.tar.gz
rest-proxy-call: save the content type params
-rw-r--r--rest/rest-proxy-call-private.h1
-rw-r--r--rest/rest-proxy-call.c1
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;