-
-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replacing URI.parse with Addressable #403
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems the new
rails_context
method usesuri = URI.parse(request.original_url)
, which sometimes fails to parse URIs with non-ASCII characters (see react_on_rails_helper.rb, line 361)Here's an example of a real-life(-ish) URI that should be supported but fails on our ReactOnRails powered website:
(note the
é
character inmyparam
's value), returning an error like:The addressable gem seems to be a valid alternative (which might become the official replacement for URI in the future). Unless I'm missing something here, is there a possibility to switch to using
addressable
?Feedback of what I might be doing wrong (e.g. not encoding properly?) are more than welcome as well.
The text was updated successfully, but these errors were encountered: