diff options
author | Christian Kellner <gicmo@gnome.org> | 2008-03-14 00:11:02 +0000 |
---|---|---|
committer | Christian Kellner <gicmo@src.gnome.org> | 2008-03-14 00:11:02 +0000 |
commit | e9edd3278982557431ff18cfc8ae87266c579f3d (patch) | |
tree | 5b8a609d0221996859cb1977ccdba2c14f3da3e6 | |
parent | 5774178ff4cdced4995fbef767629fa1e7d51eba (diff) | |
download | gvfs-e9edd3278982557431ff18cfc8ae87266c579f3d.tar.gz |
Make sure we set the port to -1 in case when no port is specified on the
2008-03-14 Christian Kellner <gicmo@gnome.org>
* client/httpuri.c:
Make sure we set the port to -1 in case when no port
is specified on the url so the port will be omiited
when we convert the url to a string
svn path=/trunk/; revision=1652
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | client/httpuri.c | 2 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,10 @@ +2008-03-14 Christian Kellner <gicmo@gnome.org> + + * client/httpuri.c: + Make sure we set the port to -1 in case when no port + is specified on the url so the port will be omiited + when we convert the url to a string + 2008-03-13 Alexander Larsson <alexl@redhat.com> * daemon/archive.mount.in: diff --git a/client/httpuri.c b/client/httpuri.c index 8b48671a..9d3ee94d 100644 --- a/client/httpuri.c +++ b/client/httpuri.c @@ -232,6 +232,8 @@ http_to_uri (GVfsUriMapper *mapper, if (port && (port_num = atoi (port))) decoded_uri->port = port_num; + else + decoded_uri->port = -1; decoded_uri->path = g_strdup (info->path); |