diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-06-19 02:21:51 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-19 02:21:51 -0400 |
| commit | 963450f17a1d0c6487f55c0b78779c3070f5a594 (patch) | |
| tree | be5750566a0ee766404a2e22769d1a270697b29e /MediaBrowser.Api/Images/RemoteImageService.cs | |
| parent | 0edd4e71fb54b808ab7a6d87cfd10010f1db0120 (diff) | |
| parent | 759f5a856064450acdb4c26839d6d890afb99a17 (diff) | |
Merge pull request #1860 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Api/Images/RemoteImageService.cs')
| -rw-r--r-- | MediaBrowser.Api/Images/RemoteImageService.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/MediaBrowser.Api/Images/RemoteImageService.cs b/MediaBrowser.Api/Images/RemoteImageService.cs index 02d1cdbe2..b21e54495 100644 --- a/MediaBrowser.Api/Images/RemoteImageService.cs +++ b/MediaBrowser.Api/Images/RemoteImageService.cs @@ -238,9 +238,9 @@ namespace MediaBrowser.Api.Images } if (_fileSystem.FileExists(contentPath)) - { - return ToStaticFileResult(contentPath); - } + { + return await ResultFactory.GetStaticFileResult(Request, contentPath).ConfigureAwait(false); + } } catch (DirectoryNotFoundException) { @@ -259,9 +259,9 @@ namespace MediaBrowser.Api.Images contentPath = await reader.ReadToEndAsync().ConfigureAwait(false); } - return ToStaticFileResult(contentPath); + return await ResultFactory.GetStaticFileResult(Request, contentPath).ConfigureAwait(false); } - + /// <summary> /// Downloads the image. /// </summary> |
