summaryrefslogtreecommitdiff
path: root/libsoup/soup-message-headers.c
diff options
context:
space:
mode:
authorGustavo Noronha Silva <gns@gnome.org>2009-02-20 14:33:30 +0000
committerGustavo Noronha Silva <gns@src.gnome.org>2009-02-20 14:33:30 +0000
commit59d68c138d6a84708d7cb48fadfe19edae27ce04 (patch)
tree3135ea714ccca4b1d8069fa8c606d48a3a2b0f09 /libsoup/soup-message-headers.c
parentc32d95c6ccf1b060e70760ccfb8b1d6789d26bbf (diff)
downloadlibsoup-59d68c138d6a84708d7cb48fadfe19edae27ce04.tar.gz
now returns NULL if there is no Content-Type header; fix documentation to
2009-02-20 Gustavo Noronha Silva <gns@gnome.org> * libsoup/soup-message-headers.c (soup_message_headers_get_content_type): now returns NULL if there is no Content-Type header; fix documentation to account for this change and to actually be correct about how the Content-Type is returned. svn path=/trunk/; revision=1244
Diffstat (limited to 'libsoup/soup-message-headers.c')
-rw-r--r--libsoup/soup-message-headers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libsoup/soup-message-headers.c b/libsoup/soup-message-headers.c
index e56884b1..a8652eaf 100644
--- a/libsoup/soup-message-headers.c
+++ b/libsoup/soup-message-headers.c
@@ -1043,16 +1043,16 @@ content_type_setter (SoupMessageHeaders *hdrs, const char *value)
* its value in *@content_type and *@params. @params can be %NULL if you
* are only interested in the content type itself.
*
- * Return value: %TRUE if @hdrs contains a "Content-Type" header,
- * %FALSE if not (in which case *@content_type and *@params will be
- * unchanged).
+ * Return value: a string with the value of the "Content-Type" header
+ * or NULL if @hdrs does not contain that header (in which case
+ * *@params will be * unchanged, is it has been given).
**/
const char *
soup_message_headers_get_content_type (SoupMessageHeaders *hdrs,
GHashTable **params)
{
if (!hdrs->content_type)
- return FALSE;
+ return NULL;
if (params)
parse_content_foo (hdrs, "Content-Type", NULL, params);