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

pull/11356/head
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
1 changed files with 2 additions and 1 deletions

View File

@ -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 {