You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 6. Perform an HTTP GET request to the URL using an agent that can successfully negotiate a secure HTTPS connection, which enforces the security requirements as described in 2.5 Security and privacy considerations.
resp, err := http.Get(docURL)
if err != nil {
logrus.WithError(err).Errorf("could not resolve with docURL %+v", docURL)
return nil, err
singyiu marked this conversation as resolved.
Show resolvedHide resolved
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
logrus.WithError(err).Errorf("could not resolve with response %+v", resp)
return nil, err
}
return body, nil
}
// Resolve fetchs and returns the DIDDocument from the expected URL
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
Singyiu/feat did web 01 #116
Singyiu/feat did web 01 #116
Changes from all commits
2f557bd
9e2c870
99cb3e1
95e9c90
7f8e5a0
93a276b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing