Remove the unused content choice and the plain-text hold method
The link labyrinth held every catch that mattered, text-drip was never used. Flypaper__Drip__Content now only triggers the removed-settings warning. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4b946453fb
commit
c5167262b9
21 files changed
+26
-187
No files matched your search
@@ -14,20 +14,18 @@ namespace Flypaper.Tests.Http;
|
||||
public sealed class ContentTypeTests
|
||||
{
|
||||
[Theory]
|
||||
[InlineData("Html", "/", "text/html; charset=utf-8")]
|
||||
[InlineData("Text", "/", "text/plain; charset=utf-8")]
|
||||
[InlineData("Html", "/config.json", "application/json")]
|
||||
[InlineData("Html", "/.env", "text/plain; charset=utf-8")]
|
||||
[InlineData("Html", "/sitemap.xml", "application/xml")]
|
||||
[InlineData("Html", "/SDK/webLanguage", "application/xml")]
|
||||
[InlineData("Html", "/wp-login.php", "text/html; charset=UTF-8")]
|
||||
public async Task Trap_answers_with_the_media_type_of_the_selected_strategy(string content, string path, string expected)
|
||||
[InlineData("/", "text/html; charset=utf-8")]
|
||||
[InlineData("/config.json", "application/json")]
|
||||
[InlineData("/.env", "text/plain; charset=utf-8")]
|
||||
[InlineData("/sitemap.xml", "application/xml")]
|
||||
[InlineData("/SDK/webLanguage", "application/xml")]
|
||||
[InlineData("/wp-login.php", "text/html; charset=UTF-8")]
|
||||
public async Task Trap_answers_with_the_media_type_of_the_selected_strategy(string path, string expected)
|
||||
{
|
||||
var configuration = new ConfigurationBuilder()
|
||||
.AddInMemoryCollection(new Dictionary<string, string?>
|
||||
{
|
||||
["Flypaper:MaxHoldDuration"] = "00:00:00.100",
|
||||
["Flypaper:Drip:Content"] = content,
|
||||
["Flypaper:Drip:MinDelay"] = "00:00:00.005",
|
||||
["Flypaper:Drip:MaxDelay"] = "00:00:00.010"
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user