summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kellner <gicmo@gnome.org>2008-03-14 00:11:02 +0000
committerChristian Kellner <gicmo@src.gnome.org>2008-03-14 00:11:02 +0000
commite9edd3278982557431ff18cfc8ae87266c579f3d (patch)
tree5b8a609d0221996859cb1977ccdba2c14f3da3e6
parent5774178ff4cdced4995fbef767629fa1e7d51eba (diff)
downloadgvfs-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--ChangeLog7
-rw-r--r--client/httpuri.c2
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 70a94060..1c0edda3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);