Skip to content

Conversation

@artem-gorshkov
Copy link
Contributor

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

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
@pivotal-cla
Copy link

@gorshik Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@gorshik Thank you for signing the Contributor License Agreement!

@artem-gorshkov
Copy link
Contributor Author

@pivotal-cla This is an Obvious Fix

@spencergibb
Copy link
Member

Bug fixes like this don't typically qualify as an obvious fix

Copy link
Collaborator

@OlgaMaciaszek OlgaMaciaszek left a comment

Choose a reason for hiding this comment

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

Hello @artem-gorshkov, thank you for submitting the PR. Please add a test that verifies your fix.

@OlgaMaciaszek
Copy link
Collaborator

Closing in favour of #1100.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants