Skip to content

Commit

Permalink
Revert "Update src/download.jl"
Browse files Browse the repository at this point in the history
This reverts commit 7f82cff.
  • Loading branch information
quinnj committed Aug 17, 2022
1 parent 7f82cff commit d2f58be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/download.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ end

function try_get_filename_from_request(req)
function file_from_target(t)
(t == "" || startswith(t, "/") && return nothing
(t == "" || t == "/") && return nothing
f = basename(URI(t).path) # URI(...).path to strip out e.g. query parts
return (f == "" ? file_from_target(dirname(t)) : f)
end
Expand Down

0 comments on commit d2f58be

Please sign in to comment.