Start refusal: read headers only so the 4 KiB bound limits the read; narrow the swallow to non-cancellation
Soul re-pass on 87a1bb6b: PostAsJsonAsync buffered the whole body before the cap applied. Test renamed to say what it pins.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b687da954b
commit
31ced94f2a
2 changed files with 8 additions and 6 deletions
|
|
@ -1172,7 +1172,7 @@ public sealed class HeimdallCompletionTests
|
|||
[InlineData("text/html; charset=windows-1252")]
|
||||
[InlineData("text/html; charset=bogus")]
|
||||
[InlineData("text/html; charset=utf-7")]
|
||||
public async Task A_refusal_whose_body_cannot_be_decoded_still_redirects_with_the_status(string contentType)
|
||||
public async Task A_refusal_with_an_unusual_charset_still_redirects_with_the_status(string contentType)
|
||||
{
|
||||
using var host = new HeimdallHost();
|
||||
host.Heimdall.StartStatus = HttpStatusCode.BadGateway;
|
||||
|
|
|
|||
Loading…
Reference in a new issue