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

Added context + https support #1

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

Conversation

nicollet
Copy link

@nicollet nicollet commented Oct 5, 2017

No description provided.

statusio.go Outdated
// extractScheme detects if the url is http instead of https
func extractScheme(rawurl string) (scheme, baseAddr string) {
u, err := url.Parse(rawurl)
if err != nil || u.Scheme == "" || u.Host == "" {
Copy link
Member

Choose a reason for hiding this comment

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

this looks like it will hide an error on invalid urls.

Copy link
Author

Choose a reason for hiding this comment

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

Next patch addresses this. Note that there is my statusio branch for bosun that goes with it because: 1- statusio is vendored in bosun, 2- NewClient() is returning an error now.

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