Skip to content

Stop redirect loops #1

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

Open
asf-stripe opened this issue Jun 27, 2017 · 0 comments
Open

Stop redirect loops #1

asf-stripe opened this issue Jun 27, 2017 · 0 comments

Comments

@asf-stripe
Copy link
Owner

It's possible for a misconfigured HTTP server to redirect /a to /b and /b back to /a. Most HTTP clients stop following redirects after a few. We've arbitrarily chosen 20 in the failing test at 0f292f4.

You can run only this test with

mvn test -Dsurefire.useFile=false '-Dtest=CallTest#doesNotFollow21Redirects' -DfailIfNoTests=false

Make sure the follow20Redirects test continues to pass.

IntelliJ IDEA tips:
Make sure you run mvn generate-sources before opening in IDEA.
If you're reading this too late, right-click the okhttp project > Maven > Generate Sources and Update Folders.

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