Skip to content

Commit

Permalink
Fix #363 (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
zapadi authored Jan 9, 2025
1 parent 17ab59e commit cbc5bd0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/redmine-net-api/RedmineManagerOptionsBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,10 @@ internal static Uri CreateRedmineUri(string host, string scheme = null)
uriBuilder.Scheme = uri.Scheme;
uriBuilder.Port = int.TryParse(uri.LocalPath, out var port) ? port : uri.Port;
uriBuilder.Host = uri.Host;
if (!uri.LocalPath.IsNullOrWhiteSpace() && !uri.LocalPath.Contains("."))
{
uriBuilder.Path = uri.LocalPath;
}
}
}

Expand Down

0 comments on commit cbc5bd0

Please sign in to comment.