Skip to content

Commit

Permalink
Fix URL schemes without host (bsc#1077310)
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Feb 13, 2018
1 parent 466f1f9 commit dadbea0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions library/types/src/modules/URL.rb
Original file line number Diff line number Diff line change
Expand Up @@ -655,9 +655,10 @@ def HidePasswordToken(tokens)

private

# Schemes which should not include a host.
# Schemes which should not include a host.Should be kept in sync with libzypp.
# @see https://github.com/openSUSE/libzypp/blob/d9c97b883ac1561225c4d728a5f6c8a34498d5b9/zypp/Url.cc#L184-L190
# @see #merge_host_and_path
SCHEMES_WO_HOST = ["cd", "dvd"].freeze
SCHEMES_WO_HOST = ["cd", "dvd", "hd", "iso", "dir"].freeze

# Merges host and path tokens
#
Expand Down

0 comments on commit dadbea0

Please sign in to comment.