Skip to content

Commit

Permalink
Downloads.download deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Oct 27, 2023
1 parent eaba2bf commit f188495
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ version = "0.19.30"
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
Configurations = "5218b696-f38b-4ac9-8b61-a12ec717816d"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
FileWatching = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee"
FuzzyCompletions = "fb4132e2-a121-4a70-b8a1-d5b831dcdcc2"
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3"
Expand Down
3 changes: 2 additions & 1 deletion src/webserver/data_url.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ random_data = rand(UInt8, 30)
begin
import HTTP.URIs
import Base64
import Downloads
end

# ╔═╡ a85c0c0b-47d0-4377-bc22-3c87239a67b3
Expand Down Expand Up @@ -86,7 +87,7 @@ function download_cool(url::AbstractString, path::AbstractString=tempname())
write(path, data)
path
else
download(url, path)
Downloads.download(url, path)
end
end

Expand Down

0 comments on commit f188495

Please sign in to comment.