diff options
Diffstat (limited to 'MediaBrowser.Api/BrandingService.cs')
| -rw-r--r-- | MediaBrowser.Api/BrandingService.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/MediaBrowser.Api/BrandingService.cs b/MediaBrowser.Api/BrandingService.cs index 4602f56ed..4eb69678a 100644 --- a/MediaBrowser.Api/BrandingService.cs +++ b/MediaBrowser.Api/BrandingService.cs @@ -26,17 +26,15 @@ namespace MediaBrowser.Api public object Get(GetBrandingOptions request) { - var result = _config.GetConfiguration<BrandingOptions>("branding"); - - return ToOptimizedResult(result); + return _config.GetConfiguration<BrandingOptions>("branding"); } public object Get(GetBrandingCss request) { var result = _config.GetConfiguration<BrandingOptions>("branding"); - // When null this throws a 405 error under Mono OSX, so default to empty string - return ResultFactory.GetResult(result.CustomCss ?? string.Empty, "text/css"); + // When null this throws a 405 error under Mono OSX, so default to empty string + return ResultFactory.GetResult(Request, result.CustomCss ?? string.Empty, "text/css"); } } } |
