From 1b262c4f1dad8462c6bd7ca99e059ff977bdb7af Mon Sep 17 00:00:00 2001 From: Adam Oates <31167933+islonely@users.noreply.github.com> Date: Tue, 31 Aug 2021 13:36:26 -0500 Subject: [PATCH] vweb: show correct page on http error 404 (#11355) --- vlib/vweb/vweb.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index 38c8d9c821..18b20703fe 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -503,7 +503,8 @@ fn handle_conn(mut conn net.TcpConn, mut app T) { } } // site not found - send_string(mut conn, vweb.http_404.bytestr()) or {} + // send_string(mut conn, vweb.http_404.bytestr()) or {} + app.not_found() } fn route_matches(url_words []string, route_words []string) ?[]string {