ConceptVotePageTests: drop the empty-Origin case (HttpClient never sends an empty header)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d3a7611f2a
commit
75d2cedaa2
1 changed files with 1 additions and 2 deletions
|
|
@ -145,7 +145,6 @@ public sealed partial class ConceptVotePageTests : IClassFixture<TestWebApplicat
|
|||
[InlineData("https://localhost:8443")]
|
||||
[InlineData("http://localhost")]
|
||||
[InlineData("null")]
|
||||
[InlineData("")]
|
||||
[InlineData("https://localhost/")]
|
||||
[InlineData("https://evil.example")]
|
||||
public async Task Cast_from_any_other_origin_is_refused_even_when_fetch_site_says_same_origin(string origin)
|
||||
|
|
@ -159,7 +158,7 @@ public sealed partial class ConceptVotePageTests : IClassFixture<TestWebApplicat
|
|||
using var response = await visitor.Post(collection, "alpha", handler, origin: origin, fetchSite: "same-origin");
|
||||
Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
|
||||
Assert.Null(SetCookieHeader(response, CookieName));
|
||||
Assert.Empty(response.Headers.Where(h => h.Key == "Set-Cookie"));
|
||||
Assert.False(response.Headers.Contains("Set-Cookie"));
|
||||
Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue