s3EncodeName encodes string in response when encodingType is specified in AWS S3 requests.
(name, encodingType string)
| 95 | |
| 96 | // s3EncodeName encodes string in response when encodingType is specified in AWS S3 requests. |
| 97 | func s3EncodeName(name, encodingType string) string { |
| 98 | if strings.ToLower(encodingType) == "url" { |
| 99 | return s3URLEncode(name) |
| 100 | } |
| 101 | return name |
| 102 | } |