mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 22:16:15 +03:00
s3cmd: Handle support for s3cmd.
This commit is contained in:
@@ -37,7 +37,9 @@ func SignatureHandler(h http.Handler) http.Handler {
|
||||
|
||||
func isRequestSignatureV4(req *http.Request) bool {
|
||||
if _, ok := req.Header["Authorization"]; ok {
|
||||
return ok
|
||||
if strings.HasPrefix(req.Header.Get("Authorization"), authHeaderPrefix) {
|
||||
return ok
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user