Browse Source

Update Jellyfin.Server/Middleware/UrlDecodeQueryFeature.cs

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
BaronGreenback 4 years ago
parent
commit
e1a0b5d2a1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jellyfin.Server/Middleware/UrlDecodeQueryFeature.cs

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

@@ -72,7 +72,7 @@ namespace Jellyfin.Server.Middleware
                     if (i == -1)
                     {
                         // encoded is an equals.
-                        pairs.Add(pair[0..i].ToString(), new StringValues(string.Empty));
+                        pairs.Add(pair[..i].ToString(), StringValues.Empty);
                         continue;
                     }