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

Fixing raft leaderAPI URL when URLPrefix nonempty #951

Merged
merged 2 commits into from Aug 6, 2019

Conversation

shlomi-noach
Copy link
Collaborator

Context: #950 (comment)

When URLPrefix is non-empty, the raft leaderAPI URL is malformed, as in http://127.0.0.1:3000//myprefix/api (note the double slash in //myprefix).

This PR fixes that so that the URL is http://127.0.0.1:3000/myprefix/api.

When URLPrefix is empty, nothing changes and the URL is already correct.

cc @xjxyxgq

@shlomi-noach shlomi-noach had a problem deploying to production/mysql_cluster=concertmaster August 6, 2019 05:57 Failure
@shlomi-noach shlomi-noach had a problem deploying to production/mysql_cluster=concertmaster August 6, 2019 05:57 Failure
@shlomi-noach shlomi-noach temporarily deployed to production/mysql_cluster=concertmaster August 6, 2019 05:59 Inactive
@shlomi-noach shlomi-noach merged commit 5dbb911 into master Aug 6, 2019
@shlomi-noach shlomi-noach deleted the fix-raft-leader-api-url branch August 6, 2019 06:02
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.

None yet

1 participant