Skip to content

Conversation

@derekhjray
Copy link
Contributor

Add auto registry scheme(https/http) detect for Ping().

If registry auto redirect http to https( or https to http), and we try to use name.Insecure option, Ping() func has chances stopped by http.Client for too many redirects. And the fixture just replace original scheme with successful request's scheme

Copy link
Contributor

@Subserial Subserial left a comment

Choose a reason for hiding this comment

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

Please add a test for this case.

@derekhjray
Copy link
Contributor Author

Please add a test for this case.

tests added

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