Decode an S3 object name according to the encoding type
(name, encodingType string)
| 1133 | |
| 1134 | // Decode an S3 object name according to the encoding type |
| 1135 | func decodeS3Name(name, encodingType string) (string, error) { |
| 1136 | switch encodingType { |
| 1137 | case "url": |
| 1138 | return url.QueryUnescape(name) |
| 1139 | default: |
| 1140 | return name, nil |
| 1141 | } |
| 1142 | } |
no outgoing calls
no test coverage detected