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

fix(gofeatureflag): Error for configurationHasChanged when slash was missing in endpoint #1229

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chrillebile
Copy link

This PR

If the endpoint did not have a trailing slash then configurationHasChanged request would not work correctly, as it would try to do a request on https://example.comv1/flag/change instead of https://example.com/v1/flag/change
URL(this.endpoint) is being used for all other requests to mitigate this, except for configurationHasChanged.

How to test

Before you could not set the endpoint to https://example.com, you had to set https://example.com/.
Now you can set https://example.com or https://example.com/.

@chrillebile chrillebile requested a review from a team as a code owner March 17, 2025 14:05
@github-actions github-actions bot requested a review from thomaspoignant March 17, 2025 14:05
If the endpoint did not have a trailing slash then
configurationHasChanged would not work correctly.
Signed-off-by: Christian Bilevits <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants