[libsoup] soup-request-data: another fix
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] soup-request-data: another fix
- Date: Sun, 12 Dec 2010 11:14:59 +0000 (UTC)
commit d3c751a0d2dc573a69baa5eee3dd6376593c5b2a
Author: Dan Winship <danw gnome org>
Date: Sun Dec 12 12:14:06 2010 +0100
soup-request-data: another fix
libsoup/soup-request-data.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-request-data.c b/libsoup/soup-request-data.c
index 3a1f0a6..a385763 100644
--- a/libsoup/soup-request-data.c
+++ b/libsoup/soup-request-data.c
@@ -153,7 +153,10 @@ soup_request_data_get_content_type (SoupRequest *request)
{
SoupRequestData *data = SOUP_REQUEST_DATA (request);
- return data->priv->content_type;
+ if (data->priv->content_type)
+ return data->priv->content_type;
+ else
+ return "text/plain;charset=US-ASCII";
}
static const char *data_schemes[] = { "data", NULL };
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]