Skip to content

Commit 7355a58

Browse files
authored
Merge pull request #102 from damienbod/fix-MessagePackTests
Fix message pack tests
2 parents cbdaa22 + bf62e06 commit 7355a58

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@ test_script:
1515
- dotnet test
1616
- cd ../../tests/WebApiContrib.Core.Protobuf.Tests
1717
- dotnet test
18+
- cd ../../tests/WebApiContrib.Core.MessagePack.Tests
19+
- dotnet test
1820
- cd ../../tests/WebApiContrib.Core.Yaml.Tests
1921
- dotnet test

tests/WebApiContrib.Core.MessagePack.Tests/MessagePackTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public async Task Post_JSON_Header()
129129
Title = "Italian Ways: On and off the Rails from Milan to Palermo"
130130
};
131131

132-
request.Content = new StringContent(JsonConvert.SerializeObject(book));
132+
request.Content = new StringContent(JsonConvert.SerializeObject(book),Encoding.UTF8, "application/json");
133133
var result = await client.SendAsync(request);
134134

135135
var echo = JsonConvert.DeserializeObject<Book>(await result.Content.ReadAsStringAsync());

0 commit comments

Comments
 (0)