Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion test/IronPigeon.Relay.Tests/BlobControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,15 @@ private async Task<HttpResponseMessage> UploadAddressBookHelperAsync(byte[] seri
}

Uri requestUri = new Uri(this.blobPostUrl.OriginalString + "?lifetimeInMinutes=" + lifetime, UriKind.Relative);
return await this.httpClient.PostAsync(requestUri, content, this.TimeoutToken);
using var request = new HttpRequestMessage(HttpMethod.Post, requestUri)
{
Content = content,
Headers =
{
TransferEncodingChunked = includeContentLengthHeader ? (bool?)null : true,
},
};
return await this.httpClient.SendAsync(request, this.TimeoutToken);
}

private async Task UploadAsync(LengthHeader lengthHeader, long length, TimeSpan expiration, HttpStatusCode expectedCode)
Expand Down
2 changes: 1 addition & 1 deletion test/IronPigeon.Relay.Tests/IronPigeon.Relay.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="3.1.9" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="5.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="Xunit.Combinatorial" Version="1.4.1" />
Expand Down