Skip to content
Browse files

Making sure we generate the right url when using a tenant database

  • Loading branch information...
1 parent e183e23 commit 438cafb0d77f0ebb3531ed631b3e9344b0d1cfd1 @ayende ayende committed Feb 27, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 Raven.Smuggler/SmugglerApi.cs
View
3 Raven.Smuggler/SmugglerApi.cs
@@ -33,6 +33,9 @@ private HttpRavenRequest CreateRequest(string url, string method = "GET")
var builder = new StringBuilder(ConnectionStringOptions.Url, 2);
if (string.IsNullOrWhiteSpace(ConnectionStringOptions.DefaultDatabase) == false)
{
+ if (ConnectionStringOptions.Url.EndsWith("/") == false)
+ builder.Append("/");
+ builder.Append("databases/");
builder.Append(ConnectionStringOptions.DefaultDatabase);
builder.Append('/');
}

0 comments on commit 438cafb

Please sign in to comment.
Something went wrong with that request. Please try again.