李昊 5 년 전
부모
커밋
a759e966fe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      gx_api/GxPress/Api/GxPress.Api/AppControllers/videoController.cs

+ 1 - 1
gx_api/GxPress/Api/GxPress.Api/AppControllers/videoController.cs

@@ -63,7 +63,7 @@ namespace GxPress.Api.AppControllers
                 //获取后缀名
                 var ext = fileInfo.Extension;
                 new FileExtensionContentTypeProvider().Mappings.TryGetValue(ext, out var contenttype);
-                return File(bytsize, contenttype ?? "application/octet-stream", fileInfo.Name);
+                return File(bytsize, "application/octet-stream", fileInfo.Name);
             }
             catch (FileNotFoundException e)
             {