Skip to content

Commit 228f33e

Browse files
committed
Use RDF::URI.parse instead of ::URI.parse when using NetHttpAdapter.
1 parent 697ac0d commit 228f33e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/rdf/util/file.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module RDF; module Util
1414
# allowing the use of `Rack::Cache` to avoid network access.
1515
#
1616
# To use other HTTP clients, consumers can subclass
17-
# {RDF::Util::File::HttpAdapter} and set the {RDF::Util::File.http_adapter}.
17+
# {RDF::Util::File::HttpAdapter} and set the {RDF::Util::File.}.
1818
#
1919
# Also supports the file: scheme for access to local files.
2020
#
@@ -121,8 +121,8 @@ def self.open_url(base_uri, proxy: nil, headers: {}, verify_none: false, **optio
121121

122122
redirect_count = 0
123123
max_redirects = 5
124-
parsed_url = ::URI.parse(base_uri)
125-
parsed_proxy = ::URI.parse(proxy.to_s)
124+
parsed_url = RDF::URI.parse(base_uri)
125+
parsed_proxy = RDF::URI.parse(proxy.to_s)
126126
base_uri = parsed_url.to_s
127127
remote_document = nil
128128

0 commit comments

Comments
 (0)