Browse Source

make sure css endpoint returns something

Luke 10 years ago
parent
commit
38499de17a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      MediaBrowser.Api/BrandingService.cs

+ 2 - 1
MediaBrowser.Api/BrandingService.cs

@@ -34,7 +34,8 @@ namespace MediaBrowser.Api
         {
         {
             var result = _config.GetConfiguration<BrandingOptions>("branding");
             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");
         }
         }
     }
     }
 }
 }