Fixes incorrect default port when an httpHomePath is not specified for an FTP Account. (See discussion on #330).

This commit is contained in:
SolidX 2014-12-31 03:46:28 -05:00
parent dfc722b7a5
commit d101541e74

View file

@ -190,6 +190,7 @@ public string GetUriPath(string filename, string subFolderPath = null)
}
httpHomeUri = new UriBuilder(URLHelpers.CombineURL(host, subFolderPath, filename));
httpHomeUri.Port = -1; //Since httpHomePath is not set, it's safe to erase UriBuilder's assumed port number
}
else
{