fix content type for video
This commit is contained in:
		
							parent
							
								
									0089757f02
								
							
						
					
					
						commit
						f8db798af6
					
				|  | @ -20,7 +20,7 @@ func (c Client) GetPresignedURL(ctx context.Context, bucket, object, fileType st | |||
| 
 | ||||
| 	// add content type for video
 | ||||
| 	if fileType == ListTypes.Video { | ||||
| 		parts := strings.Split(object, ".")[1] | ||||
| 		parts := strings.Split(object, ".") | ||||
| 		reqParams.Set("response-content-type", fmt.Sprintf("video/%s", parts[len(parts)-1])) | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue