From 7b1b9afc9e5ce7f044958add4817b009db29caf4 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 16 Apr 2025 02:07:03 -0400 Subject: Fix tcc complaints --- examples/http-server/http-server.tm | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/http-server') 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} -- cgit v1.2.3