From a0d98951aae48e7ff96d74c03a879b530820b937 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 16 Mar 2017 18:49:34 -0700 Subject: [PATCH] Use MaterialisingResponse for static resource responses --- src/NzbDrone.Api/Frontend/Mappers/StaticResourceMapperBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Api/Frontend/Mappers/StaticResourceMapperBase.cs b/src/NzbDrone.Api/Frontend/Mappers/StaticResourceMapperBase.cs index 489d039d0..5d4b57d50 100644 --- a/src/NzbDrone.Api/Frontend/Mappers/StaticResourceMapperBase.cs +++ b/src/NzbDrone.Api/Frontend/Mappers/StaticResourceMapperBase.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; using NLog; using Nancy; @@ -38,7 +38,7 @@ public virtual Response GetResponse(string resourceUrl) if (_diskProvider.FileExists(filePath, _caseSensitive)) { var response = new StreamResponse(() => GetContentStream(filePath), MimeTypes.GetMimeType(filePath)); - return response; + return new MaterialisingResponse(response); } _logger.Warn("File {0} not found", filePath);