Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/download.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ from the rules of the HTTP.
- `headers` specifies headers to be used for the HTTP GET request
- any additional keyword args (`kw...`) are passed on to the HTTP request.
"""
function download(url::AbstractString, local_path=nothing, headers=Header[]; update_period=1, kw...)
function download(url::Union{URI, AbstractString}, local_path=nothing, headers=Header[]; update_period=1, kw...)
format_progress(x) = round(x, digits=4)
format_bytes(x) = !isfinite(x) ? "∞ B" : Base.format_bytes(round(Int, x))
format_seconds(x) = "$(round(x; digits=2)) s"
Expand Down