Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for s3URLEncode (2.73 sec)

  1. 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]
    		if shouldEscape(c) {
    			if c == ' ' {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue May 27 15:19:03 UTC 2025
    - 2.8K bytes
    - Viewed (0)
Back to top