From 7c496b4c7f4132d576dc4227871177fa04fdb76e Mon Sep 17 00:00:00 2001 From: ChiaraBm Date: Wed, 16 Jul 2025 20:48:49 +0200 Subject: [PATCH] Fixed oauth2 controller returning invalid data. Adjusted build seps for tailwind class map --- .../Controllers/OAuth2/OAuth2Controller.cs | 8 +--- .../Moonlight.Client.Runtime.csproj | 48 ------------------- Moonlight.Client/Moonlight.Client.csproj | 2 +- 3 files changed, 3 insertions(+), 55 deletions(-) diff --git a/Moonlight.ApiServer/Http/Controllers/OAuth2/OAuth2Controller.cs b/Moonlight.ApiServer/Http/Controllers/OAuth2/OAuth2Controller.cs index 05c74a28..70ab3a51 100644 --- a/Moonlight.ApiServer/Http/Controllers/OAuth2/OAuth2Controller.cs +++ b/Moonlight.ApiServer/Http/Controllers/OAuth2/OAuth2Controller.cs @@ -66,8 +66,6 @@ public partial class OAuth2Controller : Controller parameters.Add("RedirectUri", redirectUri); parameters.Add("ResponseType", responseType); }); - - await Response.WriteAsync(html); } else { @@ -77,12 +75,10 @@ public partial class OAuth2Controller : Controller parameters.Add("RedirectUri", redirectUri); parameters.Add("ResponseType", responseType); }); - - await Response.WriteAsync(html); } await Results - .Text(html, "text/html") + .Text(html, "text/html", Encoding.UTF8) .ExecuteAsync(HttpContext); } @@ -158,7 +154,7 @@ public partial class OAuth2Controller : Controller } await Results - .Text(html, "text/html") + .Text(html, "text/html", Encoding.UTF8) .ExecuteAsync(HttpContext); } } diff --git a/Moonlight.Client.Runtime/Moonlight.Client.Runtime.csproj b/Moonlight.Client.Runtime/Moonlight.Client.Runtime.csproj index 627ac2ce..1c083df3 100644 --- a/Moonlight.Client.Runtime/Moonlight.Client.Runtime.csproj +++ b/Moonlight.Client.Runtime/Moonlight.Client.Runtime.csproj @@ -19,52 +19,4 @@ - - - true - styles - Never - - - true - styles - Never - - - true - styles - Never - - - true - styles - Never - - - true - styles - Never - - - true - styles - Never - - - true - styles - Never - - - - - - - - - <_ContentIncludedByDefault Remove="wwwroot\js\moonCore.js" /> - <_ContentIncludedByDefault Remove="wwwroot\js\moonlight.js" /> - <_ContentIncludedByDefault Remove="wwwroot\svg\logo.svg" /> - - diff --git a/Moonlight.Client/Moonlight.Client.csproj b/Moonlight.Client/Moonlight.Client.csproj index 2decf80b..a04300ce 100644 --- a/Moonlight.Client/Moonlight.Client.csproj +++ b/Moonlight.Client/Moonlight.Client.csproj @@ -46,7 +46,7 @@ - + \ No newline at end of file