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

Do not hard code API host of push notification service #86

Merged
merged 4 commits into from
Feb 8, 2018
Merged

Do not hard code API host of push notification service #86

merged 4 commits into from
Feb 8, 2018

Conversation

jasonpet
Copy link
Contributor

@jasonpet jasonpet commented Feb 7, 2018

fix for issue #85

@jasonpet
Copy link
Contributor Author

jasonpet commented Feb 7, 2018

@csantanapr please review

apiHost = params.apiHost;
}
else if (params.admin_url) {
var adminURL = require('url').parse(`https:${params.admin_url}`);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to check if admin url starts with http first
Today it starts with // but in future might be corrected with https://

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea

Copy link
Member

@csantanapr csantanapr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jasonpet for the contribution

@csantanapr csantanapr merged commit 97b99da into apache:master Feb 8, 2018
@jasonpet jasonpet deleted the urlFix branch February 8, 2018 18:50
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