mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 21:50:22 +03:00
@@ -66,7 +66,7 @@ func getReqAccessKeyV4(r *http.Request, region string, stype serviceType) (auth.
|
||||
|
||||
// parse credentialHeader string into its structured form.
|
||||
func parseCredentialHeader(credElement string, region string, stype serviceType) (ch credentialHeader, aec APIErrorCode) {
|
||||
creds := strings.Split(strings.TrimSpace(credElement), "=")
|
||||
creds := strings.SplitN(strings.TrimSpace(credElement), "=", 2)
|
||||
if len(creds) != 2 {
|
||||
return ch, ErrMissingFields
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user