Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for extractSignedHeaders (0.08 sec)

  1. cmd/signature-v4-utils.go

    func sumHMAC(key []byte, data []byte) []byte {
    	hash := hmac.New(sha256.New, key)
    	hash.Write(data)
    	return hash.Sum(nil)
    }
    
    // extractSignedHeaders extract signed headers from Authorization header
    func extractSignedHeaders(signedHeaders []string, r *http.Request) (http.Header, APIErrorCode) {
    	reqHeaders := r.Header
    	reqQueries := r.Form
    	// find whether "host" is part of list of signed headers.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top