-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Align TestRestTemplate default redirect settings to be the same as RestTemplate #43431
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
Comments
Hello @philwebb if you would be available to explain what you mean by second sentence in a bit more detail I would like to start working on this issue. |
Thanks for the offer @thecooldrop, but I think this one might be better handled by the team. We need to do some design work before and have some additional discussion before come up with the direction we want to take. |
Seems like the documentation also needs to be updated: https://docs.spring.io/spring-boot/reference/testing/test-utilities.html#testing.utilities.test-rest-template
|
Uh oh!
There was an error while loading. Please reload this page.
The current situation is quite confusing. We use the defaults for the underlying library (usually follow redirects), unless you use HttpComponents. At that point we stop following redirects unless you create the
TestRestTemplate
withHttpClientOption.ENABLE_REDIRECTS
.The text was updated successfully, but these errors were encountered: