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

Redirecting to locations containing a parent or current directory reference #172

Closed
wants to merge 1 commit into from

Conversation

neilb14
Copy link

@neilb14 neilb14 commented Nov 11, 2012

I was having some problems with redirects on a site that redirected to locations using parent and current directory references. This pull request contains a small change to handle those types of locations.

Neil.


it "redirects if a 300 contains a relative location header with a current directory path" do
redirect = stub_response '', 300
redirect['location'] = './foo/bar'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this actually legal according to RFCs?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, should be absolute but I've run across it and browsers respond accordingly.

@jnunemaker
Copy link
Owner

Not really sure what to do with this, so I'm closing. Feel free to re-open if you/anyone feel really passionate about it and can explain it a bit more to me.

@jnunemaker jnunemaker closed this Apr 10, 2013
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