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:
parent
dadfda9400
commit
1b262c4f1d
@ -503,7 +503,8 @@ fn handle_conn<T>(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 {
|
||||
|
Loading…
Reference in New Issue
Block a user