mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-24 02:59:13 +08:00
close responses
This commit is contained in:
parent
ef78631a7c
commit
870a30665b
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user