Browse Source

Update OpenIddictValidationSystemNetHttpHandlers.AttachFormParameters to exclude null values

pull/1195/head
Kévin Chalet 5 years ago
parent
commit
2985e09f8b
  1. 1
      src/OpenIddict.Validation.SystemNetHttp/OpenIddictValidationSystemNetHttpHandlers.cs

1
src/OpenIddict.Validation.SystemNetHttp/OpenIddictValidationSystemNetHttpHandlers.cs

@ -221,6 +221,7 @@ namespace OpenIddict.Validation.SystemNetHttp
let values = (string[]?) parameter.Value let values = (string[]?) parameter.Value
where values is not null where values is not null
from value in values from value in values
where !string.IsNullOrEmpty(value)
select new KeyValuePair<string, string>(parameter.Key, value)); select new KeyValuePair<string, string>(parameter.Key, value));
return default; return default;

Loading…
Cancel
Save