Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isRequestPresignedSignatureV4 (0.19 sec)

  1. cmd/signature-v4-utils.go

    // skipContentSha256Cksum returns true if caller needs to skip
    // payload checksum, false if not.
    func skipContentSha256Cksum(r *http.Request) bool {
    	var (
    		v  []string
    		ok bool
    	)
    
    	if isRequestPresignedSignatureV4(r) {
    		v, ok = r.Form[xhttp.AmzContentSha256]
    		if !ok {
    			v, ok = r.Header[xhttp.AmzContentSha256]
    		}
    	} else {
    		v, ok = r.Header[xhttp.AmzContentSha256]
    	}
    
    	// Skip if no header was set.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. cmd/generic-handlers.go

    func hasMultipleAuth(r *http.Request) bool {
    	authTypeCount := 0
    	for _, hasValidAuth := range []func(*http.Request) bool{
    		isRequestSignatureV2, isRequestPresignedSignatureV2,
    		isRequestSignatureV4, isRequestPresignedSignatureV4,
    		isRequestJWT, isRequestPostPolicySignatureV4,
    	} {
    		if hasValidAuth(r) {
    			authTypeCount++
    		}
    	}
    	return authTypeCount > 1
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 06 01:01:15 UTC 2024
    - 20.4K bytes
    - Viewed (0)
Back to top