diff options
| author | Luke <luke.pulverenti@gmail.com> | 2015-06-07 15:12:55 -0400 |
|---|---|---|
| committer | Luke <luke.pulverenti@gmail.com> | 2015-06-07 15:12:55 -0400 |
| commit | 38499de17a413095dff4cf846f069d8b8ae8d16e (patch) | |
| tree | 5c698a11de8d25805f8f8982890eef82fee4a5b5 | |
| parent | 28fffceddad6aa1ba1c88d190a73fa00c2d14e0a (diff) | |
make sure css endpoint returns something
| -rw-r--r-- | MediaBrowser.Api/BrandingService.cs | 3 |
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"); } } } |
