From 86efe7aff0b0ed88f89543ce27666754a254b162 Mon Sep 17 00:00:00 2001 From: David Cowden Date: Wed, 22 Jul 2020 18:39:46 -0700 Subject: [PATCH] aws: use http.NoBody instead of nil It's a little more descriptive. --- authority/provisioner/aws.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authority/provisioner/aws.go b/authority/provisioner/aws.go index 56a96490..12dffaa8 100644 --- a/authority/provisioner/aws.go +++ b/authority/provisioner/aws.go @@ -403,7 +403,7 @@ func (p *AWS) readURL(url string) ([]byte, error) { func (p *AWS) readURLv1(url string) (*http.Response, error) { client := http.Client{} - req, err := http.NewRequest(http.MethodGet, url, nil) + req, err := http.NewRequest(http.MethodGet, url, http.NoBody) if err != nil { return nil, err } @@ -437,7 +437,7 @@ func (p *AWS) readURLv2(url string) (*http.Response, error) { } // now make the request - req, err = http.NewRequest(http.MethodGet, url, nil) + req, err = http.NewRequest(http.MethodGet, url, http.NoBody) if err != nil { return nil, err }