mirror of
https://github.com/minio/minio.git
synced 2025-01-26 14:13:16 -05:00
Validate date header only for Signed{,V2} and StreamingSigned. (#3248)
Fixes #2941
This commit is contained in:
parent
380d6c6435
commit
c57a358c9d
@ -194,7 +194,7 @@ func setTimeValidityHandler(h http.Handler) http.Handler {
|
||||
|
||||
func (h timeValidityHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
aType := getRequestAuthType(r)
|
||||
if aType != authTypeAnonymous && aType != authTypeJWT {
|
||||
if aType == authTypeSigned || aType == authTypeSignedV2 || aType == authTypeStreamingSigned {
|
||||
// Verify if date headers are set, if not reject the request
|
||||
amzDate, apiErr := parseAmzDateHeader(r)
|
||||
if apiErr != ErrNone {
|
||||
|
Loading…
x
Reference in New Issue
Block a user