diff options
author | Rodney Dawes <dobey@ximian.com> | 2004-02-17 16:51:26 +0000 |
---|---|---|
committer | Rodney Dawes <dobey@src.gnome.org> | 2004-02-17 16:51:26 +0000 |
commit | a8ec8a96aa5caafdcf00f5eb7f13439d17b316a2 (patch) | |
tree | 2c28c33ea872dd24fbffb39216c49a013fc93592 | |
parent | 3646e57041b33ef47e9368924a0ddacb0ac92f01 (diff) | |
download | libsoup-a8ec8a96aa5caafdcf00f5eb7f13439d17b316a2.tar.gz |
HTTP connections require a hostname, and we also hash on the host for
2004-02-17 Rodney Dawes <dobey@ximian.com>
* libsoup/soup-message.c (soup_message_new): HTTP connections require
a hostname, and we also hash on the host for message queueing in the
session, if the host is NULL we free the SoupUri and return NULL
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | libsoup/soup-message.c | 5 |
2 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2004-02-17 Rodney Dawes <dobey@ximian.com> + + * libsoup/soup-message.c (soup_message_new): HTTP connections require + a hostname, and we also hash on the host for message queueing in the + session, if the host is NULL we free the SoupUri and return NULL + 2004-02-14 Dan Winship <danw@ximian.com> * configure.in: Use POSIX-compliant "test $foo = bar", rather than diff --git a/libsoup/soup-message.c b/libsoup/soup-message.c index da7366ba..aa256df1 100644 --- a/libsoup/soup-message.c +++ b/libsoup/soup-message.c @@ -220,6 +220,11 @@ soup_message_new (const char *method, const char *uri_string) if (!uri) return NULL; + if (!uri->host) { + soup_uri_free (uri); + return NULL; + } + msg = g_object_new (SOUP_TYPE_MESSAGE, NULL); msg->method = method ? method : SOUP_METHOD_GET; msg->priv->uri = uri; |