fix(ci): stabilize oversized body check [CI]
This commit is contained in:
1 parent
9f02a17c85
commit
b9c620304c
3 files changed
+9
-3
No files matched your search
@@ -129,10 +129,16 @@ public sealed class ServerFixture : IAsyncLifetime, IAsyncDisposable
|
||||
public async Task<HttpResponseMessage> JoinAsync(Chan ch, Who who) =>
|
||||
await Http.SendAsync(Req(HttpMethod.Post, $"/api/v1/channels/{ch.Id}/seats", who));
|
||||
|
||||
public async Task<HttpResponseMessage> AppendAsync(Chan ch, Who who, byte[] frame, string? maxDownloads = null)
|
||||
public async Task<HttpResponseMessage> AppendAsync(
|
||||
Chan ch,
|
||||
Who who,
|
||||
byte[] frame,
|
||||
string? maxDownloads = null,
|
||||
bool expectContinue = false)
|
||||
{
|
||||
var req = Req(HttpMethod.Post, $"/api/v1/channels/{ch.Id}/frames", who, Bytes(frame));
|
||||
if (maxDownloads is not null) req.Headers.Add("X-WD-Max-Downloads", maxDownloads);
|
||||
req.Headers.ExpectContinue = expectContinue;
|
||||
return await Http.SendAsync(req);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user