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

vweb: remove calling .to_lower too early while processing url and url params (#9805)

This commit is contained in:
Carlos Esquerdo Bernat 2021-04-28 06:46:36 +02:00 committed by GitHub
parent 3edbf71770
commit f46868133b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -359,7 +359,7 @@ fn handle_conn<T>(mut conn net.TcpConn, mut app T) {
}
// Serve a static file if it is one
// TODO: get the real path
url := urllib.parse(app.req.url.to_lower()) or {
url := urllib.parse(app.req.url) or {
eprintln('error parsing path: $err')
return
}