diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/uri/generic.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index 4ebe1fb0a3..a968101468 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -617,7 +617,7 @@ Object # raise if both hier and opaque are not nil, because: # absoluteURI = scheme ":" ( hier_part | opaque_part ) # hier_part = ( net_path | abs_path ) [ "?" query ] - if @host || @port || @usr || @path # userinfo = @user + ':' + @password + if @host || @port || @user || @path # userinfo = @user + ':' + @password raise InvalidURIError, "can not set opaque with host, port, userinfo or path" elsif v && OPAQUE !~ v |