mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-16 03:13:01 -06:00
[bugfix] s3 media uploaded without content-type (#3353)
* update go-storage dependency, for S3Storage manually call PutObject() so we can set content-type * update calls to PutFile() to include the contentType
This commit is contained in:
parent
b0fbc327f0
commit
53ee6aef08
15 changed files with 433 additions and 210 deletions
5
vendor/github.com/minio/minio-go/v7/retry.go
generated
vendored
5
vendor/github.com/minio/minio-go/v7/retry.go
generated
vendored
|
|
@ -129,9 +129,10 @@ func isHTTPStatusRetryable(httpStatusCode int) (ok bool) {
|
|||
}
|
||||
|
||||
// For now, all http Do() requests are retriable except some well defined errors
|
||||
func isRequestErrorRetryable(err error) bool {
|
||||
func isRequestErrorRetryable(ctx context.Context, err error) bool {
|
||||
if errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) {
|
||||
return false
|
||||
// Retry if internal timeout in the HTTP call.
|
||||
return ctx.Err() == nil
|
||||
}
|
||||
if ue, ok := err.(*url.Error); ok {
|
||||
e := ue.Unwrap()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue