Skip to content
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

The get request drops the query part of the URL #9

Open
rudyl313 opened this issue Jun 19, 2017 · 0 comments
Open

The get request drops the query part of the URL #9

rudyl313 opened this issue Jun 19, 2017 · 0 comments

Comments

@rudyl313
Copy link

Looking at the following line in your code (lib/tor/http.rb):

request = Net::HTTP::Get.new(path || uri_or_host.path)

Here you don't allow for a query as well as a path. You'd want to pass path + "?" + query. In the case that's it's a URI, I'm pretty sure you can just pass the whole URI object to Net::HTTP::Get.new(..) and that way the query part won't be dropped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant