make sure css endpoint returns something

This commit is contained in:
Luke 2015-06-07 15:12:55 -04:00
parent 28fffcedda
commit 38499de17a

View File

@ -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");
}
}
}