Skip to content

Commit

Permalink
FIXED: libary(prolog_pack): detection of valid download URLs.
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWielemaker committed Nov 5, 2024
1 parent 5b47690 commit 4cfcde7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions library/prolog_pack.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2164,8 +2164,9 @@
url_scheme(URL, Scheme) :-
atom(URL),
uri_components(URL, Components),
uri_data(scheme, Components, Scheme),
atom(Scheme).
uri_data(scheme, Components, Scheme0),
atom(Scheme0),
Scheme = Scheme0.

download_scheme(http).
download_scheme(https).
Expand Down

0 comments on commit 4cfcde7

Please sign in to comment.