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

Verification on https protocol when computing the base url of an api call #117

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

patacoing
Copy link

A lot of people make mistakes when providing the "server" parameter when creating a QGConnector by giving the protocol within the parameter resulting a malformed URL.

We added a verification to ensure that the protocol is not put twice in the computed URL.
We also refactored the function to use a dict instead of a list of if statements.

Added a verification on protocol in self.server to avoid mistakes
Instead of making a list of if statements,
we used a dict taking as a key the api version and in the value: the path.
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.

1 participant