Fix failing tests

This commit is contained in:
Bond_009 2021-09-25 13:58:16 +02:00
parent 5fd315b17c
commit e627b1b154

View File

@ -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)
{