deadmann / AdvancedRestHandler

A utility code that can be used to request Data from services...
MIT License
5 stars 0 forks source link

FormUrlEncoded model send empty data #50

Closed deadmann closed 1 month ago

deadmann commented 1 month ago
var keyValueOnObject = ToKeyValue(req);
                var keyValueRequest = new List<KeyValuePair<string, string>>();
                foreach (KeyValuePair<string, string> p in keyValueRequest)
                {
                    if (p.Value != null)
                        keyValueRequest.Add(new KeyValuePair<string, string>(p.Key, p.Value));
                }

in here the code try to fill object, with result list, not request list.