Project

General

Profile

Bug #13154

Updated by hsbt (Hiroshi SHIBATA) 2 months ago

This two URI means the same: 
 ``` 
 uri1 = URI::parse '/1/2/3' 
 uri2 = URI::parse 'file:///1/2/3' 
 ``` `` 
 but `uri1 == uri2` return **false** 
 it is cause of normalize! implementation that compare scheme this way: 
 ``` 
 if scheme && scheme != scheme.downcase 
   set_scheme(self.scheme.downcase) 
 end 
 ``` 
 But nil scheme actually equivalent to file

Back