Created
August 2, 2011 20:40
-
-
Save ryankennedy/1121167 to your computer and use it in GitHub Desktop.
bite me, java.net.URI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# WTF is java.net.URI thinking? | |
# | |
scala> new URI("http", null, "hostname", 80, "/foo", "bar%20is=baz", null) | |
res5: java.net.URI = http://hostname:80/foo?bar%2520is=baz | |
# | |
# Oh, I see...I have to do this the inconvenient way. | |
# | |
scala> URI.create("http://hostname:80/foo?bar%20is=baz") | |
res6: java.net.URI = http://hostname:80/foo?bar%20is=baz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yeah, seems broken to me.