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

set correct path on redirect to filename #337

Conversation

ontarionick
Copy link
Contributor

I apologize if this is heinous - I'm completely new to how HTTP works, and this is a guess at how to fix a problem I've had a couple times.

When I make a GET request to a certain website, I get a 302 response with the location header set to the same filename (but without the full path) with a different query string. When attempting to follow that redirect, httparty makes a GET request to a broken url and I get an getaddrinfo: nodename nor servname provided, or not known (SocketError) exception.

For example:

@jnunemaker jnunemaker merged commit 36e5806 into jnunemaker:master Oct 22, 2014
@jnunemaker
Copy link
Owner

Merged. Nice t-shirt in your avatar. :)

@ontarionick ontarionick deleted the set_correct_path_on_redirect_to_filename branch October 22, 2014 14:44
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

Successfully merging this pull request may close these issues.

2 participants