net: fix download_file (#10439)

This commit is contained in:
JalonSolov 2021-06-12 18:40:32 -04:00 committed by GitHub
parent 2ff0f62866
commit 6e41561124
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -649,7 +649,7 @@ pub fn (mut u URL) set_path(p string) ?bool {
// their results.
// In general, code should call escaped_path instead of
// reading u.raw_path directly.
fn (u &URL) escaped_path() string {
pub fn (u &URL) escaped_path() string {
if u.raw_path != '' && valid_encoded_path(u.raw_path) {
unescape(u.raw_path, .encode_path) or { return '' }
return u.raw_path