Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for doesV4PresignParamsExist (0.22 sec)

  1. cmd/signature-v4-parser.go

    //	querystring += &X-Amz-SignedHeaders=signed_headers
    //	querystring += &X-Amz-Signature=signature
    //
    // verifies if any of the necessary query params are missing in the presigned request.
    func doesV4PresignParamsExist(query url.Values) APIErrorCode {
    	v4PresignQueryParams := []string{xhttp.AmzAlgorithm, xhttp.AmzCredential, xhttp.AmzSignature, xhttp.AmzDate, xhttp.AmzSignedHeaders, xhttp.AmzExpires}
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. cmd/signature-v4-parser_test.go

    		for j := 0; j < len(testCase.inputQueryKeyVals)-1; j += 2 {
    			inputQuery.Set(testCase.inputQueryKeyVals[j], testCase.inputQueryKeyVals[j+1])
    		}
    
    		actualErrCode := doesV4PresignParamsExist(inputQuery)
    
    		if testCase.expectedErrCode != actualErrCode {
    			t.Fatalf("Test %d: Expected the APIErrCode to be %d, got %d", i+1, testCase.expectedErrCode, actualErrCode)
    		}
    	}
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 27.4K bytes
    - Viewed (0)
Back to top