Skip to content

Commit 376268a

Browse files
authored
Set Kusto wait encoding to UTF8
The Kusto wait strategy uses the default encoding. For .NET Framework, this resolves to Windows-1252, which causes the Kusto emulator to return a 415 Media Type not Supported error. In .NET Core, it is UTF-8. This allows .NET Framework tests to run by setting the encoding to always be UTF-8.
1 parent b822e61 commit 376268a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Testcontainers.Kusto/KustoBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ protected override KustoBuilder Init()
5252
.WithMethod(HttpMethod.Post)
5353
.ForPort(KustoPort)
5454
.ForPath("/v1/rest/mgmt")
55-
.WithContent(() => new StringContent("{\"csl\":\".show cluster\"}", Encoding.Default, "application/json"))));
55+
.WithContent(() => new StringContent("{\"csl\":\".show cluster\"}", Encoding.UTF8, "application/json"))));
5656
}
5757

5858
/// <inheritdoc />
@@ -72,4 +72,4 @@ protected override KustoBuilder Merge(KustoConfiguration oldValue, KustoConfigur
7272
{
7373
return new KustoBuilder(new KustoConfiguration(oldValue, newValue));
7474
}
75-
}
75+
}

0 commit comments

Comments
 (0)