mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 22:17:25 -04:00
corrected comments
This commit is contained in:
parent
a7bccd4fe0
commit
dabeabc553
1 changed files with 3 additions and 2 deletions
|
@ -35,14 +35,14 @@ namespace Jellyfin.Server.Middleware
|
|||
|
||||
set
|
||||
{
|
||||
// Only interested in where the querystring is encoded which shows up as one key with everything else in the value.
|
||||
// Only interested in where the querystring is encoded which shows up as one key with nothing in the value.
|
||||
if (value.Count != 1)
|
||||
{
|
||||
_store = value;
|
||||
return;
|
||||
}
|
||||
|
||||
// Encoded querystrings have no value, so don't process anything if a values is present.
|
||||
// Encoded querystrings have no value, so don't process anything if a value is present.
|
||||
var kvp = value.First();
|
||||
if (!string.IsNullOrEmpty(kvp.Value))
|
||||
{
|
||||
|
@ -55,6 +55,7 @@ namespace Jellyfin.Server.Middleware
|
|||
|
||||
if (string.Equals(unencodedKey, kvp.Key, System.StringComparison.Ordinal))
|
||||
{
|
||||
// Don't do anything if it's not encoded.
|
||||
_store = value;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue