diff options
author | Alex Pilon <apilon@hashicorp.com> | 2019-02-22 18:24:37 -0500 |
---|---|---|
committer | Alex Pilon <apilon@hashicorp.com> | 2019-02-22 18:24:37 -0500 |
commit | 15c0b25d011f37e7c20aeca9eaf461f78285b8d9 (patch) | |
tree | 255c250a5c9d4801c74092d33b7337d8c14438ff /vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go | |
parent | 07971ca38143c5faf951d152fba370ddcbe26ad5 (diff) | |
download | terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.tar.gz terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.tar.zst terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.zip |
deps: github.com/hashicorp/terraform@sdk-v0.11-with-go-modules
Updated via: go get github.com/hashicorp/terraform@sdk-v0.11-with-go-modules and go mod tidy
Diffstat (limited to 'vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go')
-rw-r--r-- | vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go b/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go index 5a78fd3..9f33efc 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go | |||
@@ -7,6 +7,7 @@ import ( | |||
7 | 7 | ||
8 | "github.com/aws/aws-sdk-go/aws/awserr" | 8 | "github.com/aws/aws-sdk-go/aws/awserr" |
9 | "github.com/aws/aws-sdk-go/aws/request" | 9 | "github.com/aws/aws-sdk-go/aws/request" |
10 | "github.com/aws/aws-sdk-go/internal/sdkio" | ||
10 | ) | 11 | ) |
11 | 12 | ||
12 | func copyMultipartStatusOKUnmarhsalError(r *request.Request) { | 13 | func copyMultipartStatusOKUnmarhsalError(r *request.Request) { |
@@ -17,7 +18,7 @@ func copyMultipartStatusOKUnmarhsalError(r *request.Request) { | |||
17 | } | 18 | } |
18 | body := bytes.NewReader(b) | 19 | body := bytes.NewReader(b) |
19 | r.HTTPResponse.Body = ioutil.NopCloser(body) | 20 | r.HTTPResponse.Body = ioutil.NopCloser(body) |
20 | defer body.Seek(0, 0) | 21 | defer body.Seek(0, sdkio.SeekStart) |
21 | 22 | ||
22 | if body.Len() == 0 { | 23 | if body.Len() == 0 { |
23 | // If there is no body don't attempt to parse the body. | 24 | // If there is no body don't attempt to parse the body. |