libsoup r1244 - in trunk: . libsoup



Author: gns
Date: Fri Feb 20 14:33:30 2009
New Revision: 1244
URL: http://svn.gnome.org/viewvc/libsoup?rev=1244&view=rev

Log:
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.

Modified:
   trunk/ChangeLog
   trunk/libsoup/soup-message-headers.c

Modified: trunk/libsoup/soup-message-headers.c
==============================================================================
--- trunk/libsoup/soup-message-headers.c	(original)
+++ trunk/libsoup/soup-message-headers.c	Fri Feb 20 14:33:30 2009
@@ -1043,16 +1043,16 @@
  * 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);



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