gvfs r1120 - in trunk: . client



Author: alexl
Date: Mon Jan 14 10:46:54 2008
New Revision: 1120
URL: http://svn.gnome.org/viewvc/gvfs?rev=1120&view=rev

Log:
2008-01-14  Alexander Larsson  <alexl redhat com>

        * client/httpuri.c:
        (http_from_uri):
	Only set "ssl" key in dav case.
	



Modified:
   trunk/ChangeLog
   trunk/client/httpuri.c

Modified: trunk/client/httpuri.c
==============================================================================
--- trunk/client/httpuri.c	(original)
+++ trunk/client/httpuri.c	Mon Jan 14 10:46:54 2008
@@ -70,17 +70,14 @@
 	      const char     *uri_str)
 {
   GVfsUriMountInfo *info;
-  gboolean          ssl;
-  char             *path;
+  char *path;
+  gboolean ssl;
 
   if (!g_ascii_strncasecmp (uri_str, "http", 4))
     {
-      ssl = !g_ascii_strncasecmp (uri_str, "https", 5);
       info = g_vfs_uri_mount_info_new ("http");
-      path = g_strdup ("/");
-
       g_vfs_uri_mount_info_set (info, "uri", uri_str);
-
+      path = g_strdup ("/");
     }
   else
     {
@@ -93,6 +90,7 @@
 
       info = g_vfs_uri_mount_info_new ("dav");
       ssl = !g_ascii_strcasecmp (uri->scheme, "davs");
+      g_vfs_uri_mount_info_set (info, "ssl", ssl ? "true" : "false");
 
       if (uri->host && *uri->host)
           g_vfs_uri_mount_info_set (info, "host", uri->host);
@@ -109,13 +107,12 @@
 
       path = uri->path;
       uri->path = NULL;
+      
       g_vfs_decoded_uri_free (uri);
     }
 
 
   info->path = path;
-  g_vfs_uri_mount_info_set (info, "ssl", ssl ? "true" : "false");
-
   return info;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]