From abfb8739113b16c7d326989113ed1acfa494bb4d Mon Sep 17 00:00:00 2001 From: Jamie Date: Tue, 21 Nov 2017 08:27:17 +0000 Subject: [PATCH] More added for the preset themes --- .../app/settings/settingsmenu.component.html | 1 + src/Ombi/Controllers/SettingsController.cs | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) 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") + }; } ///