李昊 5 years ago
parent
commit
a759e966fe
1 changed files with 1 additions and 1 deletions
  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)
             {