Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for HashedPayload (0.06 sec)

  1. 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