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

Redirect fixes #1778

Merged
merged 2 commits into from Sep 25, 2015
Merged

Redirect fixes #1778

merged 2 commits into from Sep 25, 2015

Conversation

gianm
Copy link
Contributor

@gianm gianm commented Sep 25, 2015

  • Fix overlord redirect's ability to detect that there is no leader.
  • Change the 302 to 307 so user agents are more likely to preserve the method (POST -> POST instead of POST -> GET)

@fjy
Copy link
Contributor

fjy commented Sep 25, 2015

👍

@@ -45,8 +47,17 @@ public boolean doLocal()
@Override
public URL getRedirectURL(String queryString, String requestURI)
{
if (!requestURI.startsWith("/")) {
Copy link
Member

Choose a reason for hiding this comment

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

is this even necessary given that we use new URI(...) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

xvrl added a commit that referenced this pull request Sep 25, 2015
@xvrl xvrl merged commit 25bbc0b into apache:master Sep 25, 2015
@gianm gianm deleted the redirect-fixes branch September 23, 2022 19:26
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.

None yet

3 participants