Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for QueryEscape (0.05 sec)

  1. cmd/object-handlers_test.go

    			invalidPartNumber:  true,
    			accessKey:          credentials.AccessKey,
    			secretKey:          credentials.SecretKey,
    			expectedRespStatus: http.StatusOK,
    		},
    		// Test case - 13.
    		// maximum part number.
    		{
    			bucketName:         bucketName,
    			uploadID:           uploadID,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 163.1K bytes
    - Viewed (0)
  2. cmd/api-utils.go

    		return false
    	}
    
    	switch c {
    	case '-', '_', '.', '/', '*':
    		return false
    	}
    	return true
    }
    
    // s3URLEncode is based on Golang's url.QueryEscape() code,
    // while considering some S3 exceptions:
    //   - Avoid encoding '/' and '*'
    //   - Force encoding of '~'
    func s3URLEncode(s string) string {
    	spaceCount, hexCount := 0, 0
    	for i := range len(s) {
    		c := s[i]
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue May 27 15:19:03 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  3. cmd/object-lambda-handlers_test.go

    						PrincipalID: "test-user",
    					},
    				}, nil
    			}
    
    			body := []byte{}
    			req := httptest.NewRequest("GET", "/objectlambda/"+bucketName+"/"+objectName+"?lambdaArn="+url.QueryEscape(lambdaARN), bytes.NewReader(body))
    			req.Form = url.Values{"lambdaArn": []string{lambdaARN}}
    			req.Header.Set("Host", "localhost")
    			req.Header.Set("X-Amz-Date", time.Now().UTC().Format("20060102T150405Z"))
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Jul 18 21:56:31 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  4. cmd/test-utils_test.go

    	signature := getSignature(signingKey, stringToSign)
    
    	req.URL.RawQuery = query.Encode()
    
    	// Add signature header to RawQuery.
    	req.URL.RawQuery += "&X-Amz-Signature=" + url.QueryEscape(signature)
    
    	// Construct the final presigned URL.
    	return nil
    }
    
    // preSignV2 - presign the request in following style.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 77K bytes
    - Viewed (0)
  5. cmd/server_test.go

    	c.Assert(err, nil)
    	// setting the "X-Amz-Copy-Source" to allow copying the content of previously uploaded object.
    	request.Header.Set("X-Amz-Copy-Source", url.QueryEscape(SlashSeparator+bucketName+SlashSeparator+objectName))
    	if s.signer == signerV4 {
    		err = signRequestV4(request, s.accessKey, s.secretKey)
    	} else {
    		err = signRequestV2(request, s.accessKey, s.secretKey)
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 118.1K bytes
    - Viewed (0)
Back to top