李昊 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)
             {