Skip to content

Commit

Permalink
Trim trailing slashes in server URL in ConnectionInfo.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Apr 16, 2021
1 parent ec8a7d4 commit 7c4f935
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Shared/Models/ConnectionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ public string Host
{
get
{
return _host;
return _host?.Trim()?.TrimEnd('/');
}
set
{
_host = value.Trim().TrimEnd('/');
_host = value?.Trim()?.TrimEnd('/');
}
}
public string OrganizationID { get; set; }
Expand Down

0 comments on commit 7c4f935

Please sign in to comment.