fix(ci): stabilize oversized body check [CI]
ci/woodpecker/push/web-build Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/dev-image Pipeline was canceled

This commit is contained in:
justme committed 2026-10-12 01:58:41 +08:00
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);
}