summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-08-25 09:40:05 -0400
committerDan Winship <danw@gnome.org>2013-08-25 09:40:05 -0400
commit74b6fc3525a04432495cb2db5d6ce62c5a90c5a6 (patch)
tree691d130bf1898b20f4504fedcbd3265fb2abea11
parent0ea86f566b7d526c8328c7c602ae1be8cda8dd68 (diff)
downloadlibsoup-74b6fc3525a04432495cb2db5d6ce62c5a90c5a6.tar.gz
soup_cookie_new: clarify the interpretation of @domain
https://bugzilla.gnome.org/show_bug.cgi?id=691840
-rwxr-xr-xlibsoup/soup-cookie.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libsoup/soup-cookie.c b/libsoup/soup-cookie.c
index 731a4a5a..3f7dcc38 100755
--- a/libsoup/soup-cookie.c
+++ b/libsoup/soup-cookie.c
@@ -358,6 +358,10 @@ cookie_new_internal (const char *name, const char *value,
* soup_cookie_set_secure() and soup_cookie_set_http_only() if you
* need to set those attributes on the returned cookie.)
*
+ * If @domain starts with ".", that indicates a domain (which matches
+ * the string after the ".", or any hostname that has @domain as a
+ * suffix). Otherwise, it is a hostname and must match exactly.
+ *
* @max_age is used to set the "expires" attribute on the cookie; pass
* -1 to not include the attribute (indicating that the cookie expires
* with the current session), 0 for an already-expired cookie, or a