Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support methodPath entries containing colon. #55

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

Merged

Conversation

craigcitro
Copy link
Contributor

Currently, if we have a top-level methodPath of the form path:methodName,
we'll pass this to urlparse.urljoin, where this is interpreted as
scheme:netloc. In cases other than media upload, this is not what we
want.

This fixes the issue by adding our own custom urljoin, which detects and
handles this case. We also add a test.

PTAL @nathanielmanistaatgoogle

Currently, if we have a top-level methodPath of the form `path:methodName`,
we'll pass this to `urlparse.urljoin`, where this is interpreted as
`scheme:netloc`. In cases other than media upload, this is **not** what we
want.

This fixes the issue by adding our own custom `urljoin`, which detects and
handles this case. We also add a test.
@nathanielmanistaatgoogle nathanielmanistaatgoogle merged commit 91debf8 into googleapis:master Feb 23, 2015
@craigcitro craigcitro deleted the toplevel_custom branch February 23, 2015 18:19
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