Oops, fix infinite recursive calls of URI().

This commit is contained in:
Akinori MUSHA 2012-10-18 18:40:39 +09:00
parent 3d7b39ff86
commit 79ab0ffabf

View file

@ -13,7 +13,7 @@ class HTTP::Cookie
if RUBY_VERSION < "1.9.3"
module URIFix
def URI(url)
url.is_a?(URI) ? url : URI(url)
url.is_a?(URI) ? url : Kernel::URI(url)
end
private :URI
end