Skip to content

Commit e787578

Browse files
authored
fix SimpleWServer POST
with no Post handler, all POST test failed
1 parent 2322f37 commit e787578

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Servers/SimpleWServer/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55

66
var server = new SimpleWServer(IPAddress.Any, port);
77

8+
89
server.MapGet("/", () => "OK");
910
server.MapGet("/{path}", () => "OK");
11+
server.MapPost("/", () => "OK");
12+
server.MapPost("/{path}", () => "OK");
1013

1114
Console.WriteLine($"SimpleW listening on http://localhost:{port}");
1215

0 commit comments

Comments
 (0)