Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isDirectiveValid (0.07 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top