aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests/IntegratedTests/UserAvatarTest.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-11 16:04:22 +0800
committerGitHub <noreply@github.com>2020-11-11 16:04:22 +0800
commita6b049ed65571b6b50d6e082c8845d9025191f01 (patch)
tree97d046bd04d5a0faee219584137e5943a0dc05fe /BackEnd/Timeline.Tests/IntegratedTests/UserAvatarTest.cs
parenta63180b5664842ef35baf2dfdf1516ce90dac03a (diff)
parenta04b2760f4ad72a666251757f0efb97890948914 (diff)
downloadtimeline-a6b049ed65571b6b50d6e082c8845d9025191f01.tar.gz
timeline-a6b049ed65571b6b50d6e082c8845d9025191f01.tar.bz2
timeline-a6b049ed65571b6b50d6e082c8845d9025191f01.zip
Merge pull request #172 from crupest/migrate
Migrate to .net 5.0.
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests/UserAvatarTest.cs')
-rw-r--r--BackEnd/Timeline.Tests/IntegratedTests/UserAvatarTest.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests/UserAvatarTest.cs b/BackEnd/Timeline.Tests/IntegratedTests/UserAvatarTest.cs
index f2796005..66a12573 100644
--- a/BackEnd/Timeline.Tests/IntegratedTests/UserAvatarTest.cs
+++ b/BackEnd/Timeline.Tests/IntegratedTests/UserAvatarTest.cs
@@ -65,6 +65,7 @@ namespace Timeline.Tests.IntegratedTests
{
using var content = new ByteArrayContent(new[] { (byte)0x00 });
+ content.Headers.ContentLength = null;
content.Headers.ContentType = new MediaTypeHeaderValue("image/png");
var res = await client.PutAsync("users/user1/avatar", content);
res.Should().BeInvalidModel();