This commit is contained in:
ig 2023-04-05 13:08:45 +02:00
parent dc259095e0
commit d2c83ddc7f
1 changed files with 5 additions and 5 deletions

View File

@ -23,8 +23,8 @@ public static class WebServer
listener.Start();
var handlers404 = handlers
.Concat(Default.HttpResponse)
.ToArray();
.Concat(Default.HttpResponse)
.ToArray();
while (true)
{
@ -34,9 +34,9 @@ public static class WebServer
var request = context.ConvertRequest();
var response = handlers404
.Select(f => f(request))
.SkipWhile(r => r == null)
.First()!;
.Select(f => f(request))
.SkipWhile(r => r == null)
.First()!;
context.SendResponse(response);
}