Ver Fonte

Merge pull request #5621 from cvium/enable-range-processing-download

enable range processing for download endpoints

(cherry picked from commit 411570e6d404d11a99315971a025ed9d7cc1486e)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
Claus Vium há 4 anos atrás
pai
commit
51f5da8015
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      Jellyfin.Api/Controllers/LibraryController.cs

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

@@ -115,7 +115,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>
@@ -667,7 +667,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>