Browse Source

enable range processing for download endpoints

cvium 4 năm trước cách đây
mục cha
commit
b3d084044e
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      Jellyfin.Api/Controllers/LibraryController.cs

+ 2 - 2
Jellyfin.Api/Controllers/LibraryController.cs

@@ -114,7 +114,7 @@ namespace Jellyfin.Api.Controllers
                 return NotFound();
             }
 
-            return PhysicalFile(item.Path, MimeTypes.GetMimeType(item.Path));
+            return PhysicalFile(item.Path, MimeTypes.GetMimeType(item.Path), true);
         }
 
         /// <summary>
@@ -666,7 +666,7 @@ namespace Jellyfin.Api.Controllers
             }
 
             // TODO determine non-ASCII validity.
-            return PhysicalFile(path, MimeTypes.GetMimeType(path), filename);
+            return PhysicalFile(path, MimeTypes.GetMimeType(path), filename, true);
         }
 
         /// <summary>