Skip to content

Commit 89c10dd

Browse files
committed
[Rb] Improves ruby bridge for url parsing rfc suite
1 parent 8d33f19 commit 89c10dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rosetta-test-rb/url_parsing.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
end
2222

2323
placeholder "url-authority" do |_env, uri|
24-
authority = uri.host
24+
authority = uri.host || ""
2525
authority = "#{uri.userinfo}@#{authority}" if uri.userinfo
2626
authority = "#{authority}:#{uri.port}" if uri.port
2727
authority

0 commit comments

Comments
 (0)