Minor fix creating the address
authorPanagiotis Kanavos <pkanavos@gmail.com>
Wed, 21 Sep 2011 17:32:12 +0000 (20:32 +0300)
committerPanagiotis Kanavos <pkanavos@gmail.com>
Wed, 21 Sep 2011 17:32:12 +0000 (20:32 +0300)
trunk/Pithos.Network/CloudFilesClient.cs
trunk/Pithos.Network/PithosClient.cs

index a32f223..c96295d 100644 (file)
@@ -75,8 +75,7 @@ namespace Pithos.Network
                 if (String.IsNullOrWhiteSpace(storageUrl))
                     throw new InvalidOperationException("Failed to obtain storage url");
                 StorageUrl = new Uri(storageUrl);
-                UriBuilder b;
-                b.Scheme;
+                
                 var token = authClient.GetHeaderValue("X-Auth-Token");
                 if (String.IsNullOrWhiteSpace(token))
                     throw new InvalidOperationException("Failed to obtain token url");
index c4d94ec..e323dbc 100644 (file)
@@ -130,7 +130,7 @@ namespace Pithos.Network
             
             var task = Retry(() =>
             {
-                var uriString = String.Join("/", BaseAddress, actualAddress);
+                var uriString = String.Join("/", BaseAddress.TrimEnd('/'), actualAddress);
                 var content = base.DownloadString(uriString);
 
                 if (StatusCode == HttpStatusCode.NoContent)