Skip to content

Commit

Permalink
fix: faulty uri builder
Browse files Browse the repository at this point in the history
  • Loading branch information
DariuszGarbarz committed Aug 8, 2024
1 parent 3779a8c commit a3e038a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions BleBoxNetSdk/Services/ApiHttpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ private Uri BuildUri(Uri baseUri, string endpoint)
{
var builder = new UriBuilder(baseUri);

builder.Path.TrimEnd('/');
builder.Path += endpoint;
builder.Path += builder.Path.TrimEnd('/') + endpoint;

return builder.Uri;
}
Expand Down

0 comments on commit a3e038a

Please sign in to comment.