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

Update HostConfig with Scheme #216

Merged
merged 2 commits into from
Jan 4, 2024

Conversation

smalisetti-infoblox
Copy link
Contributor

@smalisetti-infoblox smalisetti-infoblox commented Dec 18, 2023

Updates HostConfig with Scheme and use default "https" if Scheme is not "http".
No breaking changes.

Updates example in Readme to demonstrate that Host is configurable with Scheme.

@@ -250,8 +251,12 @@ func (wrb *WapiRequestBuilder) BuildUrl(t RequestType, objType string, ref strin
qry = vals.Encode()
}

scheme := "https"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we add validation to not support other schemes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

making a change to just allow https or http

Copy link
Collaborator

@hemanthKa677 hemanthKa677 left a comment

Choose a reason for hiding this comment

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

Changes looks good.
But I found an error, while testing with my NIOS grid url.
If someone has http working url of NIOS grid, Could you please share?

@hemanthKa677 hemanthKa677 merged commit c6208bb into infobloxopen:master Jan 4, 2024
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.

3 participants