Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for HashedPayload (0.36 sec)

  1. cmd/signature-v4.go

    //
    // canonicalRequest =
    //
    //	<HTTPMethod>\n
    //	<CanonicalURI>\n
    //	<CanonicalQueryString>\n
    //	<CanonicalHeaders>\n
    //	<SignedHeaders>\n
    //	<HashedPayload>
    func getCanonicalRequest(extractedSignedHeaders http.Header, payload, queryStr, urlPath, method string) string {
    	rawQuery := strings.ReplaceAll(queryStr, "+", "%20")
    	encodedPath := s3utils.EncodePath(urlPath)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    		method = http.MethodPost
    	}
    
    	// Save for subsequent use
    	var hashedPayload string
    	var md5Base64 string
    	switch {
    	case body == nil:
    		hashedPayload = getSHA256Hash([]byte{})
    	default:
    		payloadBytes, err := io.ReadAll(body)
    		if err != nil {
    			return nil, err
    		}
    		hashedPayload = getSHA256Hash(payloadBytes)
    		md5Base64 = getMD5HashBase64(payloadBytes)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
Back to top