From 38499de17a413095dff4cf846f069d8b8ae8d16e Mon Sep 17 00:00:00 2001 From: Luke Date: Sun, 7 Jun 2015 15:12:55 -0400 Subject: [PATCH] make sure css endpoint returns something --- MediaBrowser.Api/BrandingService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.Api/BrandingService.cs b/MediaBrowser.Api/BrandingService.cs index ac491a997a..c900e4d069 100644 --- a/MediaBrowser.Api/BrandingService.cs +++ b/MediaBrowser.Api/BrandingService.cs @@ -34,7 +34,8 @@ namespace MediaBrowser.Api { var result = _config.GetConfiguration("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"); } } }