diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-16 02:07:03 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-16 02:07:03 -0400 |
| commit | 7b1b9afc9e5ce7f044958add4817b009db29caf4 (patch) | |
| tree | 111fa67355e4442c0e0ce1290ade5d4a555b7b98 /examples | |
| parent | 7be536c5dfe3621d1d42a13ec0a3ef98ceb7f570 (diff) | |
Fix tcc complaints
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/http-server/http-server.tm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/http-server/http-server.tm b/examples/http-server/http-server.tm index 80774bff..4c04491a 100644 --- a/examples/http-server/http-server.tm +++ b/examples/http-server/http-server.tm @@ -112,6 +112,7 @@ enum RouteEntry(ServeFile(file:Path), Redirect(destination:Text)) return HTTPResponse(body, content_type=_content_type(file)) is Redirect(destination) return HTTPResponse("Found", 302, headers={"Location"=destination}) + return HTTPResponse("Unreachable", 500) func load_routes(directory:Path -> {Text=RouteEntry}) routes : &{Text=RouteEntry} |
