indent
This commit is contained in:
parent
dc259095e0
commit
d2c83ddc7f
|
@ -23,8 +23,8 @@ public static class WebServer
|
||||||
listener.Start();
|
listener.Start();
|
||||||
|
|
||||||
var handlers404 = handlers
|
var handlers404 = handlers
|
||||||
.Concat(Default.HttpResponse)
|
.Concat(Default.HttpResponse)
|
||||||
.ToArray();
|
.ToArray();
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
|
@ -34,9 +34,9 @@ public static class WebServer
|
||||||
var request = context.ConvertRequest();
|
var request = context.ConvertRequest();
|
||||||
|
|
||||||
var response = handlers404
|
var response = handlers404
|
||||||
.Select(f => f(request))
|
.Select(f => f(request))
|
||||||
.SkipWhile(r => r == null)
|
.SkipWhile(r => r == null)
|
||||||
.First()!;
|
.First()!;
|
||||||
|
|
||||||
context.SendResponse(response);
|
context.SendResponse(response);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue