diff --git a/Source/HedgeModManager/Helpers.cs b/Source/HedgeModManager/Helpers.cs
index 4447871..d92cb2d 100644
--- a/Source/HedgeModManager/Helpers.cs
+++ b/Source/HedgeModManager/Helpers.cs
@@ -27,6 +27,14 @@ public static string NormalizePath(string path)
return path.Replace('\\', '/');
}
+ ///
+ /// Ensures that the specified path ends with a trailing forward slash "/"
+ ///
+ public static string EnsureTrailingSlash(string baseHost)
+ {
+ return baseHost.TrimEnd('/') + '/';
+ }
+
///
/// Combines a base URL path and a file path into a single URL
///
diff --git a/Source/HedgeModManager/ModGeneric.cs b/Source/HedgeModManager/ModGeneric.cs
index 76605d3..b5222be 100644
--- a/Source/HedgeModManager/ModGeneric.cs
+++ b/Source/HedgeModManager/ModGeneric.cs
@@ -97,7 +97,7 @@ public void Parse(Ini file)
var server = mainSection.Get("UpdateServer", string.Empty);
if (!string.IsNullOrEmpty(server))
{
- if (Uri.TryCreate(server, UriKind.Absolute, out Uri? uri))
+ if (Uri.TryCreate(Helpers.EnsureTrailingSlash(server), UriKind.Absolute, out Uri? uri))
{
Updater = new UpdateSourceMulti(this, uri);
}