mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 06:53:07 +03:00
tests and small fix.
This commit is contained in:
@@ -66,7 +66,14 @@ namespace Jellyfin.Server.Middleware
|
||||
foreach (var pair in queryString)
|
||||
{
|
||||
var item = pair.Split('=', System.StringSplitOptions.RemoveEmptyEntries);
|
||||
pairs.Add(item[0], new StringValues(item.Length == 2 ? item[1] : string.Empty));
|
||||
if (item.Length > 0)
|
||||
{
|
||||
pairs.Add(item[0], new StringValues(item.Length == 2 ? item[1] : string.Empty));
|
||||
}
|
||||
else
|
||||
{
|
||||
pairs.Add(pair, string.Empty);
|
||||
}
|
||||
}
|
||||
|
||||
_store = new QueryCollection(pairs);
|
||||
|
||||
Reference in New Issue
Block a user