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

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

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
}