NET-A-PORTER / scala-uri

Simple scala library for building and parsing URIs
Other
261 stars 33 forks source link

Equals-signs in URI fragment are unnecessarily escaped #97

Closed JustAHappyKid closed 8 years ago

JustAHappyKid commented 9 years ago

E.g., Uri.parse("https://test.com/page#this=that").toString yields string value https://test.com/page#this%3Dthat. According to this StackOverflow post (which is according to RFC 3986), equals (along with many other characters) is allowed in the fragment unmolested (not percent-encoded).

Happy to try to whip up a test-case and/or patch... but punting for now since it's late. :-)

theon commented 8 years ago

Should be fixed in 0.4.11. I committed the fix against #99