Explorar o código

Fix failing tests

Bond_009 %!s(int64=3) %!d(string=hai) anos
pai
achega
e627b1b154
Modificáronse 1 ficheiros con 1 adicións e 11 borrados
  1. 1 11
      Jellyfin.Server/Middleware/UrlDecodeQueryFeature.cs

+ 1 - 11
Jellyfin.Server/Middleware/UrlDecodeQueryFeature.cs

@@ -52,18 +52,8 @@ namespace Jellyfin.Server.Middleware
                     return;
                 }
 
-                // Unencode and re-parse querystring.
-                var unencodedKey = HttpUtility.UrlDecode(key);
-
-                if (string.Equals(unencodedKey, key, StringComparison.Ordinal))
-                {
-                    // Don't do anything if it's not encoded.
-                    _store = value;
-                    return;
-                }
-
                 var pairs = new Dictionary<string, StringValues>();
-                var queryString = unencodedKey.SpanSplit('&');
+                var queryString = HttpUtility.UrlDecode(key).SpanSplit('&');
 
                 foreach (var pair in queryString)
                 {