Skip to content

Commit 665f8e9

Browse files
authored
chore: amend uris missing trailing slash before adding relative uri (#297)
1 parent a628f1f commit 665f8e9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Unleash/Streaming/StreamingFeatureFetcher.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ public async Task StartAsync()
3737
{
3838
try
3939
{
40-
await ApiClient.StartStreamingAsync(Settings.UnleashApi, this).ConfigureAwait(false);
40+
var uri = Settings.UnleashApi;
41+
if (!uri.AbsolutePath.EndsWith("/"))
42+
{
43+
uri = new Uri($"{uri.AbsoluteUri}/");
44+
}
45+
await ApiClient.StartStreamingAsync(uri, this).ConfigureAwait(false);
4146
}
4247
catch (Exception ex)
4348
{

0 commit comments

Comments
 (0)