diff options
author | Dan Winship <danw@gnome.org> | 2010-12-12 12:14:06 +0100 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2010-12-12 12:14:06 +0100 |
commit | d3c751a0d2dc573a69baa5eee3dd6376593c5b2a (patch) | |
tree | 3b9e4924531f2ad76f5799385d703abab012244e /libsoup/soup-request-data.c | |
parent | 919d6b97583c0541f92439d08195ee9a77011515 (diff) | |
download | libsoup-d3c751a0d2dc573a69baa5eee3dd6376593c5b2a.tar.gz |
soup-request-data: another fix
Diffstat (limited to 'libsoup/soup-request-data.c')
-rw-r--r-- | 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 3a1f0a60..a385763e 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 }; |