diff --git a/src/Ombi/ClientApp/app/settings/settingsmenu.component.html b/src/Ombi/ClientApp/app/settings/settingsmenu.component.html index 380957eb2..391590abb 100644 --- a/src/Ombi/ClientApp/app/settings/settingsmenu.component.html +++ b/src/Ombi/ClientApp/app/settings/settingsmenu.component.html @@ -73,6 +73,7 @@ diff --git a/src/Ombi/Controllers/SettingsController.cs b/src/Ombi/Controllers/SettingsController.cs index ed05af238..f5c0874b5 100644 --- a/src/Ombi/Controllers/SettingsController.cs +++ b/src/Ombi/Controllers/SettingsController.cs @@ -2,7 +2,10 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; +using System.Net; +using System.Net.Http; using System.Runtime.InteropServices; +using System.Text; using System.Threading.Tasks; using AutoMapper; using Hangfire; @@ -260,11 +263,13 @@ namespace Ombi.Controllers /// [HttpGet("themecontent")] [AllowAnonymous] - public async Task GetThemeContent([FromQuery]string url) + public async Task GetThemeContent([FromQuery]string url) { var content = await _githubApi.GetThemesRawContent(url); - - return content; + return new HttpResponseMessage(HttpStatusCode.OK) + { + Content = new StringContent(content, Encoding.UTF8, "text/css") + }; } ///