mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: fix the none
error for empty TCP connections (#9759)
This commit is contained in:
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
Block a user