close responses

This commit is contained in:
chrislu 2022-08-31 00:24:17 -07:00
parent ef78631a7c
commit 870a30665b

View file

@ -1,15 +1,16 @@
package main package main
import ( import (
"crypto/md5"
"encoding/base64"
"fmt"
"github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3" "github.com/aws/aws-sdk-go/service/s3"
"encoding/base64" "github.com/seaweedfs/seaweedfs/weed/util"
"fmt" "net/http"
"crypto/md5"
"strings" "strings"
"time" "time"
"net/http"
) )
// Downloads an item from an S3 Bucket in the region configured in the shared config // Downloads an item from an S3 Bucket in the region configured in the shared config
@ -63,6 +64,7 @@ func main() {
fmt.Printf("error put request: %v\n", err) fmt.Printf("error put request: %v\n", err)
return return
} }
defer util.CloseResponse(resp)
fmt.Printf("response: %+v\n", resp) fmt.Printf("response: %+v\n", resp)
} }