[Spice-commits] gtk/spice-uri.c

Marc-André Lureau elmarco at kemper.freedesktop.org
Wed Jun 18 03:10:24 PDT 2014


 gtk/spice-uri.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 35cda3e346e8aded56a6cffd5d0cdc1664902b92
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date:   Tue Jun 17 19:16:13 2014 +0200

    proxy: use http proxy by default if no scheme given
    
    SPICE_PROXY used to accept URI without scheme, falling back on
    http/3128. This is a regression introduced with 5dcab09ac

diff --git a/gtk/spice-uri.c b/gtk/spice-uri.c
index cf6e71b..82aefdb 100644
--- a/gtk/spice-uri.c
+++ b/gtk/spice-uri.c
@@ -90,7 +90,8 @@ gboolean spice_uri_parse(SpiceURI *self, const gchar *_uri, GError **error)
         spice_uri_set_scheme(self, "https");
         spice_uri_set_port(self, 3129);
     } else {
-        return FALSE;
+        spice_uri_set_scheme(self, "http");
+        spice_uri_set_port(self, 3128);
     }
     /* remove trailing slash */
     len = strlen(uri);


More information about the Spice-commits mailing list