The Free Software Media System - Server Backend & API
Do not declare visible instance fields
Bond-009183ef3442265
diff --git a/Jellyfin.Server/SocketSharp/RequestMono.cs b/Jellyfin.Server/SocketSharp/RequestMono.csindex af8fe96167..4bb2e8e190 100644--- a/Jellyfin.Server/SocketSharp/RequestMono.cs+++ b/Jellyfin.Server/SocketSharp/RequestMono.cs@@ -127,8 +127,12 @@ namespace Jellyfin.Server.SocketSharppublic string Authorization => string.IsNullOrEmpty(request.Headers["Authorization"]) ? null : request.Headers["Authorization"];- protected bool validate_cookies, validate_query_string, validate_form;- protected bool checked_cookies, checked_query_string, checked_form;+ protected bool validate_cookies { get; set; }+ protected bool validate_query_string { get; set; }+ protected bool validate_form { get; set; }+ protected bool checked_cookies { get; set; }+ protected bool checked_query_string { get; set; }+ protected bool checked_form { get; set; }private static void ThrowValidationException(string name, string key, string value){diff --git a/Jellyfin.Server/SocketSharp/WebSocketSharpRequest.cs b/Jellyfin.Server/SocketSharp/WebSocketSharpRequest.csindex a0f9e6d2d2..c5fdf6a3b0 100644--- a/Jellyfin.Server/SocketSharp/WebSocketSharpRequest.cs+++ b/Jellyfin.Server/SocketSharp/WebSocketSharpRequest.cs@@ -447,7 +447,7 @@ namespace Jellyfin.Server.SocketSharppublic string ContentType => request.ContentType;- public Encoding contentEncoding;+ private Encoding contentEncoding;public Encoding ContentEncoding{get => contentEncoding ?? request.ContentEncoding;