We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
API breaks when passed encoded values instead of actual values. For example:
encodeURIComponent('=') > "%3D" encodeURIComponent('&') > "%26"
This breaks when passing multiple parameters.
%26addresses%3Dmu1izpJmF7CHnbVcH59f1PqfvXnmiBEMq8 &addresses=mu1izpJmF7CHnbVcH59f1PqfvXnmiBEMq8
The text was updated successfully, but these errors were encountered:
@NathanielWroblewski, how did the urls become encoded?
I'm a bit hesitant to handle this because even the following will break www.google.com/search?q%3Dhello
Sorry, something went wrong.
Faraday.
require 'faraday' require 'json' conn = Faraday.new(:url => 'https://testnet.helloblock.io') do |faraday| faraday.request :url_encoded faraday.response :logger faraday.adapter Faraday.default_adapter end response = conn.get do |req| req.url '/wallet' req.params['addresses'] = ["mpjuaPusdVC5cKvVYCFX94bJX1SNUY8EJo"] end url = response.env.url.to_s p url # => https://testnet.helloblock.io/wallet?addresses%5B%5D=mpjuaPusdVC5cKvVYCFX94bJX1SNUY8EJo body = JSON.parse(response.body) p body # seems fine
How was that bug produced?
No branches or pull requests
API breaks when passed encoded values instead of actual values. For example:
This breaks when passing multiple parameters.
%26addresses%3Dmu1izpJmF7CHnbVcH59f1PqfvXnmiBEMq8 &addresses=mu1izpJmF7CHnbVcH59f1PqfvXnmiBEMq8
The text was updated successfully, but these errors were encountered: