Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isDirectiveValid (0.62 sec)

  1. cmd/handler-utils.go

    	ReplicationSsecChecksumHeader:                               ReplicationSsecChecksumHeader,
    	// Add more supported headers here.
    }
    
    // isDirectiveValid - check if tagging-directive is valid.
    func isDirectiveValid(v string) bool {
    	// Check if set metadata-directive is valid.
    	return isDirectiveCopy(v) || isDirectiveReplace(v)
    }
    
    // Check if the directive COPY is requested.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 16.4K bytes
    - Viewed (1)
  2. cmd/object-handlers.go

    		return
    	}
    
    	// Check if metadata directive is valid.
    	if !isDirectiveValid(r.Header.Get(xhttp.AmzMetadataDirective)) {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidMetadataDirective), r.URL)
    		return
    	}
    
    	// check if tag directive is valid
    	if !isDirectiveValid(r.Header.Get(xhttp.AmzTagDirective)) {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 120.6K bytes
    - Viewed (0)
Back to top