Skip to content

Commit

Permalink
Fixed method "Build"
Browse files Browse the repository at this point in the history
  • Loading branch information
cwh42 committed Dec 22, 2014
1 parent 9fea83f commit 18a8ef1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions library/types/src/modules/URL.rb
Expand Up @@ -273,11 +273,10 @@ def Check(url)
def Build(tokens)
Builtins.y2debug("URL::Build(): input: %1", tokens)

uri = URI()
uri = URI(tokens["host"])

uri.scheme = tokens["scheme"]
uri.hostname = tokens["host"]
uri.port.to_s = tokens["port"]
uri.port = tokens["port"]
uri.path = tokens["path"]
uri.user = tokens["user"]
uri.password = tokens["pass"]
Expand Down

0 comments on commit 18a8ef1

Please sign in to comment.