Skip to content

Commit 767dc78

Browse files
committed
encode as app/json
1 parent c9e8598 commit 767dc78

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/E2E/Azure.Functions.PowerShellWorker.E2E/Azure.Functions.PowerShellWorker.E2E/DurableEndToEndTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ namespace Azure.Functions.PowerShell.Tests.E2E
1212

1313
using System.Net.Http;
1414
using Newtonsoft.Json;
15+
using System.Text;
1516

1617
[Collection(Constants.FunctionAppCollectionName)]
1718
public class DurableEndToEndTests
@@ -221,8 +222,8 @@ public async Task ExternalEventReturnsData()
221222
while (true)
222223
{
223224
// Send external event payload
224-
StringContent content = new StringContent("helloWorld!");
225-
await httpClient.PostAsync(raiseEventUri, content);
225+
var httpContent = new StringContent("helloWorld!", Encoding.UTF8, "application/json");
226+
await httpClient.PostAsync(raiseEventUri, httpContent);
226227

227228
var statusResponse = await httpClient.GetAsync(statusQueryGetUri);
228229
switch (statusResponse.StatusCode)

0 commit comments

Comments
 (0)