ApacheHttpClient - enable/disable follow redirect via Request.Options
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.8k
- Forks
- 1.9k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 41
Description
Hi there.
With spring-cloud-openfeign, it is possible to specify feign configuration by client with :
feign:
client:
config:
feignName:
connectTimeout: 1000
follow-redirects: false
But when using the ApacheHttpClient, the property follow-redirects is ignored (whereas connectTimeout is ok)
I think it could be achieve by adding :
.setRedirectsEnabled(options.isFollowRedirects())
line 95 of ApacheHttpClient
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read ApacheHttpClient around line 95 and trace how Request.Options reaches the request configuration. Confirm that follow-redirects=false is honored when using ApacheHttpClient, while preserving the existing connectTimeout behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100