Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for signRequestV2 (0.24 sec)

  1. cmd/test-utils_test.go

    	req.URL.RawQuery = query.Encode()
    
    	// Save signature finally.
    	req.URL.RawQuery += "&Signature=" + url.QueryEscape(signature)
    	return nil
    }
    
    // Sign given request using Signature V2.
    func signRequestV2(req *http.Request, accessKey, secretKey string) error {
    	signer.SignV2(*req, accessKey, secretKey, false)
    	return nil
    }
    
    // Sign given request using Signature V4.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  2. cmd/server_test.go

    		int64(buffer1.Len()), buffer1, s.accessKey, s.secretKey, s.signer)
    	request.Header.Set("Content-Type", "application/json")
    	if s.signer == signerV2 {
    		c.Assert(err, nil)
    		err = signRequestV2(request, s.accessKey, s.secretKey)
    	}
    	c.Assert(err, nil)
    	// execute the HTTP request for object upload.
    	response, err = s.client.Do(request)
    	c.Assert(err, nil)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 15 16:28:02 UTC 2024
    - 116.3K bytes
    - Viewed (0)
  3. cmd/object-handlers_test.go

    		if testCase.metadataCopy {
    			reqV2.Header.Set("X-Amz-Metadata-Directive", "COPY")
    		}
    		if testCase.metadataGarbage {
    			reqV2.Header.Set("X-Amz-Metadata-Directive", "Unknown")
    		}
    
    		err = signRequestV2(reqV2, testCase.accessKey, testCase.secretKey)
    		if err != nil {
    			t.Fatalf("Failed to V2 Sign the HTTP request: %v.", err)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
Back to top