1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vweb: show correct page on http error 404 (#11355)

This commit is contained in:
Adam Oates 2021-08-31 13:36:26 -05:00 committed by GitHub
parent dadfda9400
commit 1b262c4f1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -503,7 +503,8 @@ fn handle_conn<T>(mut conn net.TcpConn, mut app T) {
} }
} }
// site not found // 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 { fn route_matches(url_words []string, route_words []string) ?[]string {