forked from TrueCloudLab/certificates
aws: use http.NoBody instead of nil
It's a little more descriptive.
This commit is contained in:
parent
2b121efc8f
commit
86efe7aff0
1 changed files with 2 additions and 2 deletions
|
@ -403,7 +403,7 @@ func (p *AWS) readURL(url string) ([]byte, error) {
|
||||||
func (p *AWS) readURLv1(url string) (*http.Response, error) {
|
func (p *AWS) readURLv1(url string) (*http.Response, error) {
|
||||||
client := http.Client{}
|
client := http.Client{}
|
||||||
|
|
||||||
req, err := http.NewRequest(http.MethodGet, url, nil)
|
req, err := http.NewRequest(http.MethodGet, url, http.NoBody)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -437,7 +437,7 @@ func (p *AWS) readURLv2(url string) (*http.Response, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// now make the request
|
// now make the request
|
||||||
req, err = http.NewRequest(http.MethodGet, url, nil)
|
req, err = http.NewRequest(http.MethodGet, url, http.NoBody)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue