Skip to content

Commit 2413c48

Browse files
committed
Accept URI in download function
1 parent ef9a169 commit 2413c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/download.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ from the rules of the HTTP.
9393
- `headers` specifies headers to be used for the HTTP GET request
9494
- any additional keyword args (`kw...`) are passed on to the HTTP request.
9595
"""
96-
function download(url::AbstractString, local_path=nothing, headers=Header[]; update_period=1, kw...)
96+
function download(url::Union{URI, AbstractString}, local_path=nothing, headers=Header[]; update_period=1, kw...)
9797
format_progress(x) = round(x, digits=4)
9898
format_bytes(x) = !isfinite(x) ? "∞ B" : Base.format_bytes(round(Int, x))
9999
format_seconds(x) = "$(round(x; digits=2)) s"

0 commit comments

Comments
 (0)