Skip to content

Ensure endpoint starts with 'https://' if scheme not given#96

Merged
chezou merged 1 commit into
masterfrom
ensure-https
Jul 1, 2020
Merged

Ensure endpoint starts with 'https://' if scheme not given#96
chezou merged 1 commit into
masterfrom
ensure-https

Conversation

@chezou
Copy link
Copy Markdown
Contributor

@chezou chezou commented Jul 1, 2020

If a user doesn't give a scheme for an endpoint, http will be used, e.g., api.ap02.treasuredata.com treated as http://api.ap02.treasuredata.com. This doesn't work new endpoints, i.e., ap02, since ap02 allows https only.

This patch ensures to use https if the scheme not given with endpoint.

@chezou chezou requested a review from takuti July 1, 2020 02:36
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.09%) to 96.133% when pulling 5e79cb6 on ensure-https into f703fa8 on master.

@chezou chezou merged commit d5d7ba7 into master Jul 1, 2020
@chezou chezou deleted the ensure-https branch July 1, 2020 04:49
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.

3 participants