aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/BrandingService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Api/BrandingService.cs')
-rw-r--r--MediaBrowser.Api/BrandingService.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/MediaBrowser.Api/BrandingService.cs b/MediaBrowser.Api/BrandingService.cs
index ac491a997..c900e4d06 100644
--- a/MediaBrowser.Api/BrandingService.cs
+++ b/MediaBrowser.Api/BrandingService.cs
@@ -34,7 +34,8 @@ namespace MediaBrowser.Api
{
var result = _config.GetConfiguration<BrandingOptions>("branding");
- return ResultFactory.GetResult(result.CustomCss, "text/css");
+ // When null this throws a 405 error under Mono OSX, so default to empty string
+ return ResultFactory.GetResult(result.CustomCss ?? string.Empty, "text/css");
}
}
}