Skip to content

Commit

Permalink
Fix URIUills.split_file_uri compatibility with newer URI gem
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Mar 28, 2024
1 parent 9981caf commit 5c74bbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/sprockets/uri_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ def split_file_uri(uri)
# Hack for parsing Windows "file:///C:/Users/IEUser" paths
path.gsub!(/^\/([a-zA-Z]:)/, '\1'.freeze)

host = nil if host && host.empty?
query = nil if query && query.empty?

[scheme, host, path, query]
end

Expand Down

0 comments on commit 5c74bbf

Please sign in to comment.