mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-14 14:57:28 -06:00
[chore]: Bump github.com/minio/minio-go/v7 from 7.0.56 to 7.0.58 (#1928)
This commit is contained in:
parent
4ad933b71c
commit
e3e0f673cc
9 changed files with 86 additions and 34 deletions
10
vendor/github.com/minio/minio-go/v7/api-error-response.go
generated
vendored
10
vendor/github.com/minio/minio-go/v7/api-error-response.go
generated
vendored
|
|
@ -23,6 +23,7 @@ import (
|
|||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"strings"
|
||||
)
|
||||
|
||||
/* **** SAMPLE ERROR RESPONSE ****
|
||||
|
|
@ -188,6 +189,15 @@ func httpRespToErrorResponse(resp *http.Response, bucketName, objectName string)
|
|||
}
|
||||
}
|
||||
|
||||
code := resp.Header.Get("x-minio-error-code")
|
||||
if code != "" {
|
||||
errResp.Code = code
|
||||
}
|
||||
desc := resp.Header.Get("x-minio-error-desc")
|
||||
if desc != "" {
|
||||
errResp.Message = strings.Trim(desc, `"`)
|
||||
}
|
||||
|
||||
// Save hostID, requestID and region information
|
||||
// from headers if not available through error XML.
|
||||
if errResp.RequestID == "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue