File tree Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 11name = " FileIO"
22uuid = " 5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
3- version = " 1.16.5 "
3+ version = " 1.16.6 "
44
55[deps ]
66Pkg = " 44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
77Requires = " ae029012-a4dd-5104-9daa-d747884805df"
88UUIDs = " cf7118a7-6976-5b1a-9a39-7adc72f591a4"
99
10+ [weakdeps ]
11+ HTTP = " cd3eb016-35fb-5094-929b-558a96fad6f3"
12+
13+ [extensions ]
14+ HTTPExt = " HTTP"
15+
1016[compat ]
1117Pkg = " <0.0.1, 0.7, 1"
1218Requires = " 1"
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ PNGFiles = "f57f5aa1-a3ce-4bc8-8ab9-96f992907883"
66
77[compat ]
88Documenter = " 1"
9- HTTP = " 0.9"
9+ HTTP = " 0.9, 1 "
Original file line number Diff line number Diff line change 1+ module HTTPExt
2+
3+ if isdefined (Base, :get_extension )
4+ using FileIO
5+ using HTTP
6+ else
7+ using .. FileIO
8+ using .. HTTP
9+ end
10+
11+ FileIO. load (uri:: HTTP.URI ) = load (IOBuffer (HTTP. get (uri). body))
12+
13+ end # module
Original file line number Diff line number Diff line change @@ -64,11 +64,13 @@ include("registry.jl")
6464"""
6565FileIO
6666
67+ @static if ! isdefined (Base, :get_extension )
6768function __init__ ()
6869 @require HTTP= " cd3eb016-35fb-5094-929b-558a96fad6f3" begin
69- load (uri :: HTTP.URI ) = load ( IOBuffer (HTTP . get (uri) . body) )
70+ include ( " ../ext/HTTPExt.jl " )
7071 end
7172end
73+ end # @static
7274
7375if VERSION >= v " 1.4.2" # https://github.com/JuliaLang/julia/pull/35378
7476 include (" precompile.jl" )
You can’t perform that action at this time.
0 commit comments