Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/uri/rfc2396_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ def split(uri)

if !scheme
raise InvalidURIError,
"bad URI(absolute but no scheme): #{uri}"
"bad URI (absolute but no scheme): #{uri}"
end
if !opaque && (!path && (!host && !registry))
raise InvalidURIError,
"bad URI(absolute but no path): #{uri}"
"bad URI (absolute but no path): #{uri}"
end

when @regexp[:REL_URI]
Expand Down Expand Up @@ -173,7 +173,7 @@ def split(uri)
# server = [ [ userinfo "@" ] hostport ]

else
raise InvalidURIError, "bad URI(is not URI?): #{uri}"
raise InvalidURIError, "bad URI (is not URI?): #{uri}"
end

path = '' if !path && !opaque # (see RFC2396 Section 5.2)
Expand Down
4 changes: 2 additions & 2 deletions lib/uri/rfc3986_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def split(uri) #:nodoc:
begin
uri = uri.to_str
rescue NoMethodError
raise InvalidURIError, "bad URI(is not URI?): #{uri.inspect}"
raise InvalidURIError, "bad URI (is not URI?): #{uri.inspect}"
end
uri.ascii_only? or
raise InvalidURIError, "URI must be ascii only #{uri.dump}"
Expand Down Expand Up @@ -127,7 +127,7 @@ def split(uri) #:nodoc:
m["fragment"]
]
else
raise InvalidURIError, "bad URI(is not URI?): #{uri.inspect}"
raise InvalidURIError, "bad URI (is not URI?): #{uri.inspect}"
end
end

Expand Down