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

Allow any Google cloud endpoint to be used #71

Merged
merged 2 commits into from Aug 5, 2013

Conversation

erlichmen
Copy link
Contributor

The code allow you to load discovery documents from your own Google cloud endpoint.
There was a bug in the code that always assumed that the base url is https://www.googleapis.com and not the one that you used to create the discovery document.

This allow any Google cloud endpoints to be used.

var rootUrl = url.parse(this.apiMeta.rootUrl),
callback = this.handleResponse(opt_callback),
requestOpts = this.generatePayload(rootUrl.protocol + '//' + rootUrl.host);

This comment was marked as spam.

This comment was marked as spam.

@rakyll
Copy link
Contributor

rakyll commented Aug 4, 2013

Some tests are failing because of the change.

@erlichmen
Copy link
Contributor Author

O' just notice the test, will check.

@erlichmen
Copy link
Contributor Author

tests should be ok now.

@@ -290,7 +293,7 @@ BatchRequest.prototype.generatePayload = function() {

return {
method: 'POST',
uri: BaseRequest.BASE_URL + '/batch',
uri: rootUrl + '/batch',

This comment was marked as spam.

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

2 participants