vweb: fix the `none` error for empty TCP connections (#9759)
parent
60bc280ad0
commit
b11b744630
|
@ -321,7 +321,10 @@ fn handle_conn<T>(mut conn net.TcpConn, mut app T) {
|
||||||
}
|
}
|
||||||
page_gen_start := time.ticks()
|
page_gen_start := time.ticks()
|
||||||
req := parse_request(mut reader) or {
|
req := parse_request(mut reader) or {
|
||||||
|
// Prevents errors from being thrown when BufferedReader is empty
|
||||||
|
if '$err' != 'none' {
|
||||||
eprintln('error parsing request: $err')
|
eprintln('error parsing request: $err')
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
app.Context = Context{
|
app.Context = Context{
|
||||||
|
|
Loading…
Reference in New Issue