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

Allow removing trailing slashes #1100

Merged
merged 5 commits into from
Oct 10, 2024
Merged

Conversation

OlgaMaciaszek
Copy link
Collaborator

Fixes gh-1070.

birariro and others added 4 commits October 9, 2024 18:27
In situation when we create FeignClient in this way:
@FeignClient(url = "https://localhost/", path = "api/v2")
We will get an error because of adding '/' in the beginning of the path in FeignClientsRegistrar.getPath, result will:
https://localhost//api/v2
To escape this situation we need to delete '/' at the end of url in FeignClientsRegistrar.getUrl
@OlgaMaciaszek OlgaMaciaszek added the enhancement New feature or request label Oct 9, 2024
@OlgaMaciaszek OlgaMaciaszek self-assigned this Oct 9, 2024
@OlgaMaciaszek OlgaMaciaszek marked this pull request as ready for review October 10, 2024 13:13
@OlgaMaciaszek OlgaMaciaszek merged commit 0f55e2d into main Oct 10, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feign Client is generating trailing slash in the request
4 participants