unosquare / embedio

A tiny, cross-platform, module based web server for .NET
http://unosquare.github.io/embedio
Other
1.46k stars 176 forks source link

Fix #465 (QueryFieldAttribute not respecting parameter default) #466

Closed joaomariomz closed 4 years ago

joaomariomz commented 4 years ago

This work makes it so that QueryFieldAttribute respects the default value set for a parameter when instantiating it, in case the parameter is not present in the query string of the request. I also took the chance and applied the same fix to FormFieldAttribute since the logic of them is very similar.

joaomariomz commented 4 years ago

@rdeago , thanks for the quick response. I'll see if I can fix it following your suggestion.