This might be a breaking change, since some server-client setup might rely on ~ being encoded to %7E for whatever reason.
But since this is an RFC offense, the proposed implementation should be the way to go and must be enforced for future usage in web interactive applications and such.
Decoding ~ must remain the same, we just don't want to encode ~.
Hi, first time contributing so sorry if I'm missing anything!
Issue
Heads up
This might be a breaking change, since some server-client setup might rely on
~
being encoded to%7E
for whatever reason. But since this is an RFC offense, the proposed implementation should be the way to go and must be enforced for future usage in web interactive applications and such.Decoding
~
must remain the same, we just don't want to encode~
.Details
This PR's change follows other escaping methods in core Ruby, such as
CGI.escape
,ERB::Util.url_encode
(which actually just callsCGI.escapeURIComponent
inside).