Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant